Skip to content

Commit

Permalink
fix: Intialize logging sooner to prevent missed logs (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexedia authored Mar 15, 2024
1 parent 2e09030 commit 02ee8a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/plugin/logging.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ class Logging extends NyxxPlugin {
StringSink? stdout,
StringSink? stderr,
}) : stdout = stdout ?? io.stdout,
stderr = stderr ?? io.stderr;
stderr = stderr ?? io.stderr {
_listenIfNeeded();
}

static int _clients = 0;

Expand Down Expand Up @@ -130,7 +132,6 @@ class Logging extends NyxxPlugin {
}

_clients++;
_listenIfNeeded();
}

@override
Expand Down

0 comments on commit 02ee8a6

Please sign in to comment.