Skip to content

Commit

Permalink
Store logs even if not in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Jul 18, 2022
1 parent fcf2cdb commit 6193833
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/src/helpers/logs/data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,7 @@ class LogCollection {
}
}

// In debug builds, this adds the given log to the collection.
void add(Log log) {
assert(() {
_doAdd(log);
return true;
}());
}

void _doAdd(Log log) {
int index;
if (logs.isEmpty || !log.timestamp.isBefore(logs.last.timestamp)) {
// Quick path as new logs are usually more recent.
Expand Down

0 comments on commit 6193833

Please sign in to comment.