settings: log_text before the test module (clippy)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
This commit is contained in:
1 parent
c212e07665
commit
7cd258d9a5
1 file changed
+14
-14
@@ -1365,6 +1365,20 @@ fn codec_of(i: i32) -> CodecChoice {
|
||||
}
|
||||
}
|
||||
|
||||
/// Where the logs go, for the Advanced page.
|
||||
fn log_text() -> String {
|
||||
match voelin_platform::logs::current() {
|
||||
Some(path) => format!(
|
||||
"This run logs to {} (the previous runs' next to it, the last as voelin.1.log). \
|
||||
VOELIN_LOG=voelin_core=debug,voelin_ui=debug logs more; warnings also go to the terminal.",
|
||||
path.display()
|
||||
),
|
||||
None => "Logs go to the terminal the app was started from (standard error); \
|
||||
RUST_LOG=voelin_core=debug,voelin_ui=debug shows more."
|
||||
.into(),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
@@ -1428,17 +1442,3 @@ mod tests {
|
||||
assert_eq!(rule_text(&PermRule::default()), "nobody");
|
||||
}
|
||||
}
|
||||
|
||||
/// Where the logs go, for the Advanced page.
|
||||
fn log_text() -> String {
|
||||
match voelin_platform::logs::current() {
|
||||
Some(path) => format!(
|
||||
"This run logs to {} (the previous runs' next to it, the last as voelin.1.log). \
|
||||
VOELIN_LOG=voelin_core=debug,voelin_ui=debug logs more; warnings also go to the terminal.",
|
||||
path.display()
|
||||
),
|
||||
None => "Logs go to the terminal the app was started from (standard error); \
|
||||
RUST_LOG=voelin_core=debug,voelin_ui=debug shows more."
|
||||
.into(),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user