diff options
author | Steve McIntyre <steve.mcintyre@linaro.org> | 2015-09-23 18:35:05 +0100 |
---|---|---|
committer | Steve McIntyre <steve.mcintyre@linaro.org> | 2015-09-23 18:35:05 +0100 |
commit | e9bff6b1608a118b1f3a33170a125919c1bd9771 (patch) | |
tree | 43bc1e9c79f944abf12dac86ab5569bb953fe846 | |
parent | 08750fd56e784cdaa73f757bbb8e205840af92da (diff) |
Cosmetic changes to logging for the main daemon
Change-Id: I2102cc15d8ee9dded6d32a42b5555444f0b58187
-rwxr-xr-x | vland.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -99,19 +99,19 @@ if state.config.logging.filename is None: else: print "Logging to %s" % state.config.logging.filename logging.basicConfig(level = loglevel, - format = '%(asctime)s %(levelname)-8s %(message)s', + format = '%(asctime)s %(levelname)-8s MAIN %(message)s', datefmt = '%Y-%m-%d %H:%M:%S %Z', filename = state.config.logging.filename, filemode = 'a') - logging.info('%s starting up', state.banner) + logging.info('%s main daemon starting up', state.banner) switches = state.db.all_switches() - logging.info(' DB knows about %d switches', len(switches)) + logging.info('DB knows about %d switches', len(switches)) ports = state.db.all_ports() - logging.info(' DB knows about %d ports', len(ports)) + logging.info('DB knows about %d ports', len(ports)) vlans = state.db.all_vlans() - logging.info(' DB knows about %d vlans', len(vlans)) + logging.info('DB knows about %d vlans', len(vlans)) trunks = state.db.all_trunks() - logging.info(' DB knows about %d trunks', len(trunks)) + logging.info('DB knows about %d trunks', len(trunks)) # Now start up the core loop. Listen for command connections and # process them |