Commit f13a9bde authored by Spiros Koulouzis's avatar Spiros Koulouzis

Changed logger

parent 248dca54
...@@ -2,7 +2,7 @@ version: '3' ...@@ -2,7 +2,7 @@ version: '3'
services: services:
server: server:
image: salmant/ul_monitoring_server_container_image2 image: salmant/ul_monitoring_server_container_image2
ports: ports:
- "8080:8080" - "8080:8080"
- "4242:4242" - "4242:4242"
- "4245:4245" - "4245:4245"
...@@ -12,7 +12,7 @@ services: ...@@ -12,7 +12,7 @@ services:
- "9160:9160" - "9160:9160"
- "9042:9042" - "9042:9042"
- "8012:8012" - "8012:8012"
- "61621:61621" - "61621:61621"
environment: environment:
- "MONITORING_SERVER=server" - "MONITORING_SERVER=server"
...@@ -20,4 +20,4 @@ services: ...@@ -20,4 +20,4 @@ services:
image: salmant/monitoring_agent image: salmant/monitoring_agent
deploy: {replicas: 10} deploy: {replicas: 10}
depends_on: [server] depends_on: [server]
command: --monitoringServerIP=server command: --monitoringServerIP=server
\ No newline at end of file
...@@ -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