Skip to content

Commit d680770

Browse files
authored
Merge pull request #250 from Robin-Van-de-Merghel/robin-send-message-fix
Fix to logFinalizer: adding wnVO
2 parents 746d6b4 + b884834 commit d680770

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Pilot/pilotCommands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def wrapper(self):
9393
)
9494
self.log.buffer.flush() # flush the buffer unconditionally (on sys.exit()).
9595
try:
96-
sendMessage(self.log.url, self.log.pilotUUID, "finaliseLogs", {"retCode": str(exCode)})
96+
sendMessage(self.log.url, self.log.pilotUUID, self.log.wnVO, "finaliseLogs", {"retCode": str(exCode)})
9797
except Exception as exc:
9898
self.log.error("Remote logger couldn't be finalised %s " % str(exc))
9999
raise

Pilot/pilotTools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ def __init__(
536536
super(RemoteLogger, self).__init__(name, debugFlag, pilotOutput)
537537
self.url = url
538538
self.pilotUUID = pilotUUID
539+
self.wnVO = wnVO
539540
self.isPilotLoggerOn = isPilotLoggerOn
540541
sendToURL = partial(sendMessage, url, pilotUUID, wnVO, "sendMessage")
541542
self.buffer = FixedSizeBuffer(sendToURL, bufsize=bufsize, autoflush=flushInterval)

0 commit comments

Comments
 (0)