mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2026-01-31 10:25:03 -06:00
Merge pull request #295 from astubenbord/bugfix/app-log-incorrectly-parsed
Bugfix: App log incorrectly parsed
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:logger/logger.dart';
|
import 'package:logger/logger.dart';
|
||||||
|
|
||||||
final _newLine = Platform.lineTerminator;
|
final _newLine = Platform.lineTerminator;
|
||||||
@@ -52,6 +51,9 @@ class ParsedErrorLogMessage {
|
|||||||
currentLine++;
|
currentLine++;
|
||||||
}
|
}
|
||||||
currentLine++;
|
currentLine++;
|
||||||
|
if (log.length == currentLine) {
|
||||||
|
return (currentLine, ParsedErrorLogMessage(error: errorText));
|
||||||
|
}
|
||||||
final hasStackTrace = _stackTraceBeginPattern.hasMatch(log[currentLine]);
|
final hasStackTrace = _stackTraceBeginPattern.hasMatch(log[currentLine]);
|
||||||
String? stackTrace;
|
String? stackTrace;
|
||||||
if (hasStackTrace) {
|
if (hasStackTrace) {
|
||||||
|
|||||||
Reference in New Issue
Block a user