Skip to content

Commit

Permalink
removed deprecated logger level trace v and wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
emuroni committed Aug 14, 2023
1 parent 68cd9b3 commit bb877a7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions lib/common/domain/domain_logger.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
abstract class PolygonIdSdkLogger {
void v(dynamic message, [dynamic error, StackTrace? stackTrace]);

void d(dynamic message, [dynamic error, StackTrace? stackTrace]);

void i(dynamic message, [dynamic error, StackTrace? stackTrace]);

void w(dynamic message, [dynamic error, StackTrace? stackTrace]);

void e(dynamic message, [dynamic error, StackTrace? stackTrace]);

void wtf(dynamic message, [dynamic error, StackTrace? stackTrace]);
}

// Avoid crashing if logger is not defined
Expand All @@ -23,14 +19,8 @@ class NoLogger extends PolygonIdSdkLogger {
@override
void i(message, [error, StackTrace? stackTrace]) {}

@override
void v(message, [error, StackTrace? stackTrace]) {}

@override
void w(message, [error, StackTrace? stackTrace]) {}

@override
void wtf(message, [error, StackTrace? stackTrace]) {}
}

class Domain {
Expand Down
10 changes: 0 additions & 10 deletions lib/sdk/default_logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,8 @@ class DefaultLogger implements PolygonIdSdkLogger {
_logger.i(message, error: error, stackTrace: stackTrace);
}

@override
void v(message, [error, StackTrace? stackTrace]) {
_logger.v(message, error: error, stackTrace: stackTrace);
}

@override
void w(message, [error, StackTrace? stackTrace]) {
_logger.w(message, error: error, stackTrace: stackTrace);
}

@override
void wtf(message, [error, StackTrace? stackTrace]) {
_logger.wtf(message, error: error, stackTrace: stackTrace);
}
}

0 comments on commit bb877a7

Please sign in to comment.