mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
send logs about trace only in debug mode (#2115)
This commit is contained in:
parent
36600dd82b
commit
72e011ead0
9 changed files with 10 additions and 9 deletions
|
@ -1,4 +1,5 @@
|
|||
import 'dart:math';
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
void printV(dynamic content) {
|
||||
CustomTrace programInfo = CustomTrace(StackTrace.current);
|
||||
|
@ -20,7 +21,7 @@ class CustomTrace {
|
|||
try {
|
||||
_parseTrace();
|
||||
} catch (e) {
|
||||
print("Unable to parse trace (printV): $e");
|
||||
if (kDebugMode) print("Unable to parse trace (printV): $e");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -80,7 +81,7 @@ class CustomTrace {
|
|||
columnStr = columnStr.replaceFirst(")", "");
|
||||
this.columnNumber = int.tryParse(columnStr);
|
||||
} catch (e) {
|
||||
print("Unable to parse trace (printV): $e");
|
||||
if (kDebugMode) print("Unable to parse trace (printV): $e");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue