From ae70d204b09139f5d87d51d9c8a38491d9de16aa Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 28 Jun 2025 03:16:02 +0000 Subject: [PATCH] daemon: should only log "Ignoring -w" for "daemon" command, not for gui --- electrum/daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/daemon.py b/electrum/daemon.py index 35c9c1261..be85dbe1c 100644 --- a/electrum/daemon.py +++ b/electrum/daemon.py @@ -395,9 +395,6 @@ class Daemon(Logger): fd = get_file_descriptor(config) if fd is None: raise Exception('failed to lock daemon; already running?') - if 'wallet_path' in config.cmdline_options: - self.logger.warning("Ignoring parameter 'wallet_path' for daemon. " - "Use the load_wallet command instead.") self._plugins = None # type: Optional[Plugins] self.asyncio_loop = util.get_asyncio_loop() if not self.config.NETWORK_OFFLINE: @@ -562,6 +559,9 @@ class Daemon(Logger): return True def run_daemon(self): + if 'wallet_path' in self.config.cmdline_options: + self.logger.warning("Ignoring parameter 'wallet_path' for daemon. " + "Use the load_wallet command instead.") # init plugins self._plugins = Plugins(self.config, 'cmdline') # block until we are stopping