Skip to content

Commit

Permalink
fix: fix the logic when loggerURL alone would select the RemoteLogger…
Browse files Browse the repository at this point in the history
…, even if disabled by the On flag
  • Loading branch information
martynia committed Nov 6, 2023
1 parent b530ccc commit ca28397
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Pilot/pilotTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,12 +651,13 @@ def __init__(self, pilotParams, dummy=""):
"""

self.pp = pilotParams
isPilotLoggerOn = pilotParams.pilotLogging
self.debugFlag = pilotParams.debugFlag
loggerURL = pilotParams.loggerURL
# URL present and the flag is set:
isPilotLoggerOn = pilotParams.pilotLogging and (loggerURL is not None)
interval = pilotParams.loggerTimerInterval

if loggerURL is None:
if not isPilotLoggerOn:
self.log = Logger(self.__class__.__name__, debugFlag=self.debugFlag)
else:
# remote logger
Expand Down

0 comments on commit ca28397

Please sign in to comment.