Skip to content

Commit

Permalink
fix: get classic logs first by default
Browse files Browse the repository at this point in the history
  • Loading branch information
martynia committed Sep 14, 2023
1 parent f5613fa commit bad7e9e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def export_addPilotTQRef(cls, pilotRef, taskQueueID, ownerGroup, gridType="DIRAC
def export_getPilotOutput(self, pilotReference):
"""
Get the pilot job standard output and standard error files for a pilot reference.
Handles both classic, CE-based logs and remote logs. The type og logs returned is determined
Handles both classic, CE-based logs and remote logs. The type of logs returned is determined
by the server.
:param str pilotReference:
Expand All @@ -118,7 +118,8 @@ def export_getPilotOutput(self, pilotReference):
vo = getVOForGroup(pilotDict["OwnerGroup"])
opsHelper = Operations(vo=vo)
remote = opsHelper.getValue("Pilot/RemoteLogsPriority", False)
funcs = [self._getRemotePilotOutput, self._getPilotOutput]
# classic logs first, by default
funcs = [self._getPilotOutput, self._getRemotePilotOutput]
if remote:
funcs.reverse()

Expand Down

0 comments on commit bad7e9e

Please sign in to comment.