server: Cleanup log messages for ignored attribute warnings

Reduce log messages by remove line break and remove visible \n\ sequence
This commit is contained in:
Fabian May
2025-02-03 22:52:15 +01:00
committed by GitHub
parent 5cc489aafe
commit 417abc54e4
2 changed files with 2 additions and 4 deletions

View File

@@ -82,8 +82,7 @@ pub fn get_group_attribute(
attribute,
schema,
).or_else(||{warn!(
r#"Ignoring unrecognized group attribute: {}\n\
To disable this warning, add it to "ignored_group_attributes" in the config."#,
r#"Ignoring unrecognized group attribute: {}. To disable this warning, add it to "ignored_group_attributes" in the config."#,
attribute
);None})?
}

View File

@@ -102,8 +102,7 @@ pub fn get_user_attribute(
)
.or_else(|| {
warn!(
r#"Ignoring unrecognized group attribute: {}\n\
To disable this warning, add it to "ignored_user_attributes" in the config."#,
r#"Ignoring unrecognized user attribute: {}. To disable this warning, add it to "ignored_user_attributes" in the config."#,
attribute
);
None