Skip to content

Commit

Permalink
Filter out node logs below Debug level on app
Browse files Browse the repository at this point in the history
Increase default log level back to CONFIG from INFO
  • Loading branch information
erdemyerebasmaz committed Mar 23, 2024
1 parent 872c81d commit bb979ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void shareLog() async {

class BreezLogger {
BreezLogger() {
Logger.root.level = Level.INFO;
Logger.root.level = Level.CONFIG;

if (kDebugMode) {
Logger.root.onRecord.listen((record) {
Expand Down
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import 'dart:async';
import 'dart:io';

import 'package:breez_sdk/bridge_generated.dart';
import 'package:c_breez/bloc/account/account_bloc.dart';
import 'package:c_breez/bloc/account/credentials_manager.dart';
import 'package:c_breez/bloc/backup/backup_bloc.dart';
Expand Down Expand Up @@ -54,7 +55,7 @@ void main() async {
var breezLogger = injector.breezLogger;
final breezSDK = injector.breezSDK;
if (!await breezSDK.isInitialized()) {
breezSDK.initialize();
breezSDK.initialize(filterLevel: LevelFilter.Debug);
breezLogger.registerBreezSdkLog(breezSDK);
}

Expand Down

0 comments on commit bb979ca

Please sign in to comment.