Skip to content

Commit

Permalink
'logging' updates...
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Sep 3, 2014
1 parent 6b4d411 commit 5da38bd
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 84 deletions.
7 changes: 4 additions & 3 deletions src/vpoller-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ between a pool of ZeroMQ workers.
import os
import json
import logging
import multiprocessing

from sys import exit

Expand Down Expand Up @@ -112,8 +111,10 @@ Options:
else:
level = logging.INFO

logger = multiprocessing.log_to_stderr()
logger.setLevel(level)
logging.basicConfig(
format='[%(asctime)s - %(levelname)s/%(processName)s] %(message)s',
level=level
)

result = None
rc = 0
Expand Down
8 changes: 4 additions & 4 deletions src/vpoller-worker
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ performing the actual polling from a vCenter server.
import os
import json
import logging
import multiprocessing

from sys import exit

from vpoller.client import VPollerClient
Expand Down Expand Up @@ -124,8 +122,10 @@ Options:
else:
level = logging.INFO

logger = multiprocessing.log_to_stderr()
logger.setLevel(level)
logging.basicConfig(
format='[%(asctime)s - %(levelname)s/%(processName)s] %(message)s',
level=level
)

result = None
rc = 0
Expand Down
Loading

0 comments on commit 5da38bd

Please sign in to comment.