Skip to content
Snippets Groups Projects
Commit daa5982c authored by BRONES Romain's avatar BRONES Romain
Browse files

[ArchiveExtractor] Modification de l'appel logger

* Lorsque le fichier est chargé comme module, on utilise __name__
parent d7d19545
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,6 @@ import numpy as np
import PyTango as tango
# Name the logger after the filename
logger = logging.getLogger("ArchiveExtractor")
##########################################################################
""" Commodity variables """
......@@ -260,6 +258,8 @@ def query_ADB_NearestValue(attr,
""" Command Line Interface """
if __name__ == "__main__":
# Name the logger after the filename
logger = logging.getLogger("ArchiveExtractor")
# Default stop date
dateStop = datetime.datetime.now()
......@@ -347,3 +347,7 @@ if __name__ == "__main__":
# Save all at each step
np.save(args.fileout, results)
else:
# Name the logger after the module name
logger = logging.getLogger(__name__)
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