mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-25 06:19:22 +00:00
12 lines
191 B
Dart
12 lines
191 B
Dart
|
/// Log utilities
|
||
|
///
|
||
|
/// @author Pierre Hubert
|
||
|
|
||
|
void logError(dynamic e, StackTrace s) {
|
||
|
if (e is Exception) {
|
||
|
print("Exception: $e\n$s");
|
||
|
} else {
|
||
|
print("Error: $e\n$s");
|
||
|
}
|
||
|
}
|