Signed-off-by: Chris Lamb <lamby@debian.org>
def main():
"""Launch dak functionality."""
- logger = Logger(Config(), 'dak top-level')
+ logger = Logger(Config(), 'dak top-level', print_starting=False)
functionality = init()
modules = [ command for (command, _) in functionality ]
logfile = None
program = None
- def __init__ (self, Cnf, program, debug=0):
+ def __init__ (self, Cnf, program, debug=0, print_starting=True):
"Initialize a new Logger object"
self.Cnf = Cnf
self.program = program
logfile = utils.open_file(logfilename, 'a')
os.umask(umask)
self.logfile = logfile
- self.log(["program start"])
+ if print_starting:
+ self.log(["program start"])
def log (self, details):
"Log an event"