Skip to content
Snippets Groups Projects
Verified Commit 8e04eee0 authored by Albrecht Weiche's avatar Albrecht Weiche Committed by Andre Fischer
Browse files

Merge branch '990-internal-server-errors-are-logged-without-a-cause' into 'main'

fix: log internal error with error level

Closes #990

See merge request opentalk/backend/services/controller!1529
parents 984c507c f343fbb7
No related branches found
No related tags found
No related merge requests found
...@@ -1197,7 +1197,7 @@ fn check_for_deprecated_settings(settings: &Settings) -> Result<()> { ...@@ -1197,7 +1197,7 @@ fn check_for_deprecated_settings(settings: &Settings) -> Result<()> {
if settings.reports.is_some() { if settings.reports.is_some() {
anstream::eprintln!( anstream::eprintln!(
"{}: Found an obsolete {reports} configation section.\n\ "{}: Found an obsolete {reports} configuration section.\n\
{}: This section is deprecated and will be reintroduced in a different form in the future.", {}: This section is deprecated and will be reintroduced in a different form in the future.",
"DEPRECATION WARNING".yellow().bold(), "DEPRECATION WARNING".yellow().bold(),
"NOTE".green(), "NOTE".green(),
......
...@@ -729,7 +729,7 @@ async fn create_invite_to_non_matching_email( ...@@ -729,7 +729,7 @@ async fn create_invite_to_non_matching_email(
.get_user_for_email(tenant_filter, email.as_ref()) .get_user_for_email(tenant_filter, email.as_ref())
.await .await
.map_err(|e| { .map_err(|e| {
log::warn!("Failed to query user for email: {}", Report::from_error(e)); log::error!("Failed to query user for email: {}", Report::from_error(e));
ApiError::internal() ApiError::internal()
})?; })?;
......
...@@ -220,7 +220,7 @@ client_secret = "v3rys3cr3t" ...@@ -220,7 +220,7 @@ client_secret = "v3rys3cr3t"
# attribute must be set here in external_id_user_attribute_name. # attribute must be set here in external_id_user_attribute_name.
#external_id_user_attribute_name = "my_user_attribute_name" #external_id_user_attribute_name = "my_user_attribute_name"
# Set the behaviour of the `/users/find` endpoint. # Set the behavior of the `/users/find` endpoint.
# This allows searching for users who have not yet logged into the controller. # This allows searching for users who have not yet logged into the controller.
# You can choose where to search for users or disable the endpoint completely for performance or privacy reasons. # You can choose where to search for users or disable the endpoint completely for performance or privacy reasons.
# Possible values are "disabled", "from_database" and "from_user_search_backend". # Possible values are "disabled", "from_database" and "from_user_search_backend".
...@@ -310,28 +310,6 @@ urls = ["localhost:2379"] ...@@ -310,28 +310,6 @@ urls = ["localhost:2379"]
#url = "http://localhost:9666" #url = "http://localhost:9666"
#api_key = "secret" #api_key = "secret"
# Reports configuration
#[reports]
# A template can be provided. If no template is provided the built-in template will be used.
#template.inline = """# Attendance Report
#| | |
#|--|--|
#| Meeting | {{title}} |
#| Description | {{description}} |
#{% if starts_at %}| Start | {{starts_at | date(timezone=starts_at_tz, format="%Y-%m-%d %H:%M")}} {{starts_at_tz}} | {% endif %}
#{% if ends_at %}| End | {{ends_at | date(timezone=ends_at_tz, format="%Y-%m-%d %H:%M")}} {{ends_at_tz}} | {% endif %}
### Participants
#| id | Name | Role | Kind | eMail | joined at | left at |
#| -- | -- | -- | -- | -- | -- | -- |
#{%- for participant in participants | sort(attribute = "name") | sort(attribute = "role") | reverse %}
#| {{participant.id}} | {{participant.name}} | {{participant.role}} | {{participant.kind}} | {{participant.email}} | {{participant.joined_at | date(format="%Y-%m-%d %H:%M")}} | {% if participant.left_at %} {{participant.left_at | date(format="%Y-%m-%d %H:%M")}} {% endif %} |
#{%- endfor %}
#"""
#url = "http://localhost:6560"
# Subroom audio whisper configuration # Subroom audio whisper configuration
#[subroom_audio] #[subroom_audio]
#enable_whisper = false #enable_whisper = false
...@@ -419,7 +397,7 @@ urls = ["localhost:2379"] ...@@ -419,7 +397,7 @@ urls = ["localhost:2379"]
#assignment = "static" #assignment = "static"
#static_tariff_name = "OpenTalkDefaultTariff" #static_tariff_name = "OpenTalkDefaultTariff"
# #
# Assignemnt by JWT tariff_id example: # Assignment by JWT tariff_id example:
#assignment = "by_external_tariff_id" #assignment = "by_external_tariff_id"
# #
# Status mapping for tariff status. Can only be used if the tariff assignment # Status mapping for tariff status. Can only be used if the tariff assignment
......
...@@ -136,7 +136,7 @@ client_secret = "v3rys3cr3t" ...@@ -136,7 +136,7 @@ client_secret = "v3rys3cr3t"
# attribute must be set here in external_id_user_attribute_name. # attribute must be set here in external_id_user_attribute_name.
#external_id_user_attribute_name = "my_user_attribute_name" #external_id_user_attribute_name = "my_user_attribute_name"
# Set the behaviour of the `/users/find` endpoint. # Set the behavior of the `/users/find` endpoint.
# This allows searching for users who have not yet logged into the controller. # This allows searching for users who have not yet logged into the controller.
# You can choose where to search for users or disable the endpoint completely for performance or privacy reasons. # You can choose where to search for users or disable the endpoint completely for performance or privacy reasons.
# Possible values are "disabled", "from_database" and "from_user_search_backend". # Possible values are "disabled", "from_database" and "from_user_search_backend".
...@@ -226,28 +226,6 @@ urls = ["localhost:2379"] ...@@ -226,28 +226,6 @@ urls = ["localhost:2379"]
#url = "http://localhost:9666" #url = "http://localhost:9666"
#api_key = "secret" #api_key = "secret"
# Reports configuration
#[reports]
# A template can be provided. If no template is provided the built-in template will be used.
#template.inline = """# Attendance Report
#| | |
#|--|--|
#| Meeting | {{title}} |
#| Description | {{description}} |
#{% if starts_at %}| Start | {{starts_at | date(timezone=starts_at_tz, format="%Y-%m-%d %H:%M")}} {{starts_at_tz}} | {% endif %}
#{% if ends_at %}| End | {{ends_at | date(timezone=ends_at_tz, format="%Y-%m-%d %H:%M")}} {{ends_at_tz}} | {% endif %}
### Participants
#| id | Name | Role | Kind | eMail | joined at | left at |
#| -- | -- | -- | -- | -- | -- | -- |
#{%- for participant in participants | sort(attribute = "name") | sort(attribute = "role") | reverse %}
#| {{participant.id}} | {{participant.name}} | {{participant.role}} | {{participant.kind}} | {{participant.email}} | {{participant.joined_at | date(format="%Y-%m-%d %H:%M")}} | {% if participant.left_at %} {{participant.left_at | date(format="%Y-%m-%d %H:%M")}} {% endif %} |
#{%- endfor %}
#"""
#url = "http://localhost:6560"
# Subroom audio whisper configuration # Subroom audio whisper configuration
#[subroom_audio] #[subroom_audio]
#enable_whisper = false #enable_whisper = false
...@@ -335,7 +313,7 @@ urls = ["localhost:2379"] ...@@ -335,7 +313,7 @@ urls = ["localhost:2379"]
#assignment = "static" #assignment = "static"
#static_tariff_name = "OpenTalkDefaultTariff" #static_tariff_name = "OpenTalkDefaultTariff"
# #
# Assignemnt by JWT tariff_id example: # Assignment by JWT tariff_id example:
#assignment = "by_external_tariff_id" #assignment = "by_external_tariff_id"
# #
# Status mapping for tariff status. Can only be used if the tariff assignment # Status mapping for tariff status. Can only be used if the tariff assignment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.