Move logger to common, fix buffering
This commit is contained in:
parent
3a5226b893
commit
7dea5d2fac
|
@ -72,7 +72,7 @@ class Logger(object):
|
|||
if self.config['file_logging']:
|
||||
self.logfile = self.config['log_directory'] + '/pvc.log'
|
||||
# We open the logfile for the duration of our session, but have a hup function
|
||||
self.writer = open(self.logfile, 'a', buffering=1)
|
||||
self.writer = open(self.logfile, 'a', buffering=0)
|
||||
|
||||
self.last_colour = ''
|
||||
self.last_prompt = ''
|
|
@ -42,8 +42,8 @@ from rados import Rados
|
|||
|
||||
from daemon_lib.zkhandler import ZKHandler
|
||||
|
||||
import pvcnoded.log as log
|
||||
import pvcnoded.fencing as fencing
|
||||
import daemon_lib.log as log
|
||||
import daemon_lib.common as common
|
||||
|
||||
import pvcnoded.VMInstance as VMInstance
|
||||
|
|
Loading…
Reference in New Issue