Skip to content

Commit bad7e9e

Browse files
committed
fix: get classic logs first by default
1 parent f5613fa commit bad7e9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/DIRAC/WorkloadManagementSystem/Service/PilotManagerHandler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def export_addPilotTQRef(cls, pilotRef, taskQueueID, ownerGroup, gridType="DIRAC
9898
def export_getPilotOutput(self, pilotReference):
9999
"""
100100
Get the pilot job standard output and standard error files for a pilot reference.
101-
Handles both classic, CE-based logs and remote logs. The type og logs returned is determined
101+
Handles both classic, CE-based logs and remote logs. The type of logs returned is determined
102102
by the server.
103103
104104
:param str pilotReference:
@@ -118,7 +118,8 @@ def export_getPilotOutput(self, pilotReference):
118118
vo = getVOForGroup(pilotDict["OwnerGroup"])
119119
opsHelper = Operations(vo=vo)
120120
remote = opsHelper.getValue("Pilot/RemoteLogsPriority", False)
121-
funcs = [self._getRemotePilotOutput, self._getPilotOutput]
121+
# classic logs first, by default
122+
funcs = [self._getPilotOutput, self._getRemotePilotOutput]
122123
if remote:
123124
funcs.reverse()
124125

0 commit comments

Comments
 (0)