1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00
comunicmobile/lib/utils/log_utils.dart

12 lines
191 B
Dart
Raw Normal View History

2021-03-10 23:02:41 +00:00
/// 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");
}
}