Update log format
Change-Id: I5c8673ef713da43802837093753491ca31d07dd2
This commit is contained in:
parent
fc44906a7b
commit
3baaa0d160
@ -57,10 +57,10 @@ class Server(object):
|
|||||||
if self.debug_log:
|
if self.debug_log:
|
||||||
if not os.path.isdir(os.path.dirname(self.debug_log)):
|
if not os.path.isdir(os.path.dirname(self.debug_log)):
|
||||||
os.makedirs(os.path.dirname(self.debug_log))
|
os.makedirs(os.path.dirname(self.debug_log))
|
||||||
logging.basicConfig(format='%(asctime)s %(message)s',
|
logging.basicConfig(format='%(asctime)s %(name)s %(message)s',
|
||||||
filename=self.debug_log, level=logging.DEBUG)
|
filename=self.debug_log, level=logging.DEBUG)
|
||||||
else:
|
else:
|
||||||
logging.basicConfig(format='%(asctime)s %(message)s',
|
logging.basicConfig(format='%(asctime)s %(name)s %(message)s',
|
||||||
level=logging.WARN)
|
level=logging.WARN)
|
||||||
self.log.debug('Log pusher starting.')
|
self.log.debug('Log pusher starting.')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user