Showing
2 changed files
with
4 additions
and
3 deletions
@@ -11,7 +11,7 @@ extension GetDynamicUtils on dynamic { | @@ -11,7 +11,7 @@ extension GetDynamicUtils on dynamic { | ||
11 | 11 | ||
12 | void printError( | 12 | void printError( |
13 | {String info = '', Function logFunction = GetUtils.printFunction}) => | 13 | {String info = '', Function logFunction = GetUtils.printFunction}) => |
14 | - logFunction('Error: ${this.runtimeType}', this, info); | 14 | + logFunction('Error: ${this.runtimeType}', this, info, isError: true); |
15 | 15 | ||
16 | void printInfo( | 16 | void printInfo( |
17 | {String info = '', | 17 | {String info = '', |
@@ -487,6 +487,7 @@ class GetUtils { | @@ -487,6 +487,7 @@ class GetUtils { | ||
487 | return (value == null) ? false : RegExp(pattern).hasMatch(value); | 487 | return (value == null) ? false : RegExp(pattern).hasMatch(value); |
488 | } | 488 | } |
489 | 489 | ||
490 | - static void printFunction(String prefix, dynamic value, String info) => | ||
491 | - GetConfig.log('$prefix $value $info'.trim()); | 490 | + static void printFunction(String prefix, dynamic value, String info, |
491 | + {bool isError = false}) => | ||
492 | + GetConfig.log('$prefix $value $info'.trim(), isError: isError); | ||
492 | } | 493 | } |
-
Please register or login to post a comment