Commit f13a9bde authored by Spiros Koulouzis's avatar Spiros Koulouzis

Changed logger

parent 248dca54
...@@ -15,7 +15,7 @@ import logging ...@@ -15,7 +15,7 @@ import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
if not getattr(logger, 'handler_set', None): if not getattr(logger, 'handler_set', None):
#logger.setLevel(logging.INFO) logger.setLevel(logging.INFO)
h = logging.StreamHandler() h = logging.StreamHandler()
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
h.setFormatter(formatter) h.setFormatter(formatter)
...@@ -94,7 +94,7 @@ if __name__ == "__main__": ...@@ -94,7 +94,7 @@ if __name__ == "__main__":
# home = expanduser("~") # home = expanduser("~")
# planner = DumpPlanner(home+"/workspace/DRIP/docs/input_tosca_files/BEIA_cardif2.yml") # planner = DumpPlanner(home+"/workspace/DRIP/docs/input_tosca_files/BEIA_cardif2.yml")
# print planner.plan() # print planner.plan()
logger.info("Input args: "+sys.argv) logger.info("Input args: "+sys.argv[0]+' '+sys.argv[1]+' '+sys.argv[2])
channel = init_chanel(sys.argv) channel = init_chanel(sys.argv)
global queue_name global queue_name
queue_name = sys.argv[2] queue_name = sys.argv[2]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment