Skip to content

Commit

Permalink
Move logInit to before Server.start
Browse files Browse the repository at this point in the history
  • Loading branch information
za-creature committed Jan 14, 2025
1 parent a0be495 commit 70c7380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/dart/lib/ouisync.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ class Session {
// that one instead. If we do spawn, we are responsible for logging
if (startServer) {
try {
logInit(callback: logger, tag: 'Server');
server = await Server.start(
configPath: configPath,
debugLabel: debugLabel,
);
logInit(callback: logger, tag: 'Server');
} on ServiceAlreadyRunning catch (_) {
debugPrint('Service already started');
}
Expand Down

0 comments on commit 70c7380

Please sign in to comment.