Skip to content

Commit

Permalink
chore: set log level to info by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Yesterday17 committed Sep 22, 2024
1 parent 42bb5b7 commit 90c0af7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions lib/ui/page/settings/settings_log.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ class SettingsLogView extends StatelessWidget {
Icon getLogLevelIconFromString(final String level) {
switch (level) {
case 'DEBUG':
return const Icon(Icons.bug_report_outlined);
return const Icon(Icons.bug_report);
case 'INFO':
return const Icon(Icons.info);
case 'WARN':
return const Icon(Icons.warning_amber_outlined);
return const Icon(Icons.warning);
case 'ERROR':
return const Icon(Icons.error_outline_outlined);
case 'INFO':
return const Icon(Icons.error);
default:
return const Icon(Icons.sms_outlined);
// Trace
return const Icon(Icons.sms);
}
}

Expand Down
2 changes: 1 addition & 1 deletion rust/src/api/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn init_logger(path: String) {

let logger = LogHandle::new(conn);
let subscriber = tracing_subscriber_sqlite::SubscriberBuilder::new()
.with_max_level(LevelFilter::DEBUG)
.with_max_level(LevelFilter::INFO)
.with_black_list(["h2"])
.build_layer(logger.clone())
.to_subscriber();
Expand Down

0 comments on commit 90c0af7

Please sign in to comment.