mirror of
https://github.com/ente-io/ente.git
synced 2025-08-07 23:18:10 +00:00
[mob][photos] Cleaner indication of isolate logging
This commit is contained in:
parent
d40dc06171
commit
b90a719972
@ -28,7 +28,7 @@ class IsolateLogger {
|
||||
final Queue<IsolateLogString> fileQueueEntries = Queue();
|
||||
|
||||
Future onLogRecordInIsolate(LogRecord rec) async {
|
||||
final str = "[ISOLATE]" + rec.toPrettyString();
|
||||
final str = rec.toPrettyString(null, true);
|
||||
|
||||
// write to stdout
|
||||
SuperLogging.printLog(str);
|
||||
|
@ -38,8 +38,9 @@ extension SuperString on String {
|
||||
}
|
||||
|
||||
extension SuperLogRecord on LogRecord {
|
||||
String toPrettyString([String? extraLines]) {
|
||||
final header = "[$loggerName] [$level] [$time]";
|
||||
String toPrettyString([String? extraLines, bool inIsolate = false]) {
|
||||
final header =
|
||||
"[$loggerName${inIsolate ? " (in isolate)" : ""}] [$level] [$time]";
|
||||
|
||||
var msg = "$header $message";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user