single-source for defaulty log filter string
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
102bd1b4a6
commit
7d2f510cc3
2 changed files with 4 additions and 2 deletions
|
@ -975,7 +975,8 @@ fn default_tracing_flame_output_path() -> String { "./tracing.folded".to_owned()
|
|||
|
||||
fn default_trusted_servers() -> Vec<OwnedServerName> { vec![OwnedServerName::try_from("matrix.org").unwrap()] }
|
||||
|
||||
fn default_log() -> String {
|
||||
#[must_use]
|
||||
pub fn default_log() -> String {
|
||||
// do debug logging by default for debug builds
|
||||
if cfg!(debug_assertions) {
|
||||
"debug".to_owned()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue