Skip to content
Snippets Groups Projects
Commit 5a757e8c authored by Fabrice Le Goff's avatar Fabrice Le Goff
Browse files

add logging when filename parsing fails

parent ddf872a5
No related branches found
No related tags found
No related merge requests found
Pipeline #487473 passed
...@@ -384,7 +384,13 @@ class ManagerThread(threading.Thread): ...@@ -384,7 +384,13 @@ class ManagerThread(threading.Thread):
return [pool,CastorDir,stagehost] return [pool,CastorDir,stagehost]
# end if # end if
parsed = self.parser(filename) try:
parsed = self.parser(filename)
except:
# log to be able to investigate
self.logger.critical('error parsing filename: %s', filename)
# backward compatibility: re-raise
raise
#Prepare dictionary for directory definition #Prepare dictionary for directory definition
dirdict = {'year':self.Year, dirdict = {'year':self.Year,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment