@@ -51,22 +51,24 @@ def __init__(self, plugin="Standard", transClient=None, dataManager=None, fc=Non
51
51
self .dmsHelper = DMSHelpers ()
52
52
53
53
self .plugin = plugin
54
- self .transID = str (transID ) if transID else "None"
54
+ # Keep transID an int as this is the type expected by service !!!!
55
+ self .transID = transID
56
+ self .transIDStr = str (transID ) if transID else "None"
55
57
self .params = {}
56
58
self .groupSize = 0
57
59
self .maxFiles = 0
58
60
self .cachedLFNSize = {}
59
61
self .transString = ""
60
62
self .debug = debug
61
63
62
- self .log = gLogger .getSubLogger (self .plugin + self .transID )
64
+ self .log = gLogger .getSubLogger (self .plugin + self .transIDStr )
63
65
# FIXME: This doesn't work (yet) but should soon, will allow scripts to get the context
64
66
self .log .showHeaders (True )
65
67
66
68
def logVerbose (self , message , param = "" ):
67
69
"""logger helper"""
68
70
if self .debug :
69
- log = gLogger .getSubLogger (self .plugin + " (V)" + self .transID )
71
+ log = gLogger .getSubLogger (self .plugin + " (V)" + self .transIDStr )
70
72
log .info (message , param )
71
73
else :
72
74
self .log .verbose (message , param )
@@ -94,8 +96,9 @@ def logException(self, message, param="", lException=False):
94
96
def setParameters (self , params ):
95
97
"""Set the transformation parameters and extract transID"""
96
98
self .params = params
97
- self .transID = str (params ["TransformationID" ])
98
- self .log = gLogger .getSubLogger (self .plugin + self .transID )
99
+ self .transID = params ["TransformationID" ]
100
+ self .transIDStr = str (self .transID ) if self .transID else "None"
101
+ self .log = gLogger .getSubLogger (self .plugin + self .transIDStr )
99
102
100
103
# @timeThis
101
104
def groupByReplicas (self , files , status ):
0 commit comments