From 70c7380632b09976efa1d54634d29bbe20bffb75 Mon Sep 17 00:00:00 2001 From: Radu Dan Date: Wed, 15 Jan 2025 00:17:57 +0200 Subject: [PATCH] Move logInit to before Server.start --- bindings/dart/lib/ouisync.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/dart/lib/ouisync.dart b/bindings/dart/lib/ouisync.dart index 5c9e50e9..01eadfe7 100644 --- a/bindings/dart/lib/ouisync.dart +++ b/bindings/dart/lib/ouisync.dart @@ -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'); }