fix(logging): fix static setLogService and null handling

This commit is contained in:
qzl
2026-04-01 14:36:09 +08:00
parent 49c062d5a5
commit d1092df254
2 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class LogEntry {
final sb = StringBuffer();
sb.writeln('[$timestamp] ${level.name.toUpperCase()} [$module]');
if (funcName != null || lineNo != null) {
sb.write(' at $funcName' ?? '');
sb.write(' at ${funcName ?? ''}');
if (lineNo != null) sb.write(':$lineNo');
sb.writeln();
}