fix in rndc config and newline in yadyn logging
This commit is contained in:
@ -1,17 +1,18 @@
|
||||
import sys
|
||||
import datetime
|
||||
|
||||
|
||||
class Logger(object):
|
||||
@staticmethod
|
||||
def log(data):
|
||||
with open(Logger.filename, 'a') as f:
|
||||
f.write(data)
|
||||
f.write(datetime.datetime.now().isoformat() + ' ' + data + "\n")
|
||||
|
||||
@staticmethod
|
||||
def debug(data):
|
||||
if Logger.debugFlag:
|
||||
with open(Logger.filename, 'a') as f:
|
||||
f.write(data)
|
||||
f.write(datetime.datetime.now().isoformat() + ' ' + data + "\n")
|
||||
|
||||
@staticmethod
|
||||
def openlog(filename):
|
||||
|
Reference in New Issue
Block a user