-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(log): log particle_id in service calls, set different log level by service name * feat(log): disable some log namespaces * feat(log): enable some log namespaces back, disable others It's better to manage that through ENV vars * chore: log levels * chore: set error loglevel for tracing, avm_server --------- Co-authored-by: Aleksey Proshutisnkiy <justprosh@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
55 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// Function that prescribes different log levels for different builtin namespaces | ||
pub fn builtin_log_level(service: &str) -> log::Level { | ||
match service { | ||
"array" | "cmp" | "debug" | "math" | "op" | "getDataSrv" | "run-console" => { | ||
log::Level::Debug | ||
} | ||
"peer" | "script" | "stat" | "sig" | "srv" | "dist" | "kad" => log::Level::Info, | ||
_ => log::Level::Info, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters