diff options
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r-- | klippy/klippy.py | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py index fbb2e0d3..c1821b13 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -128,8 +128,6 @@ class Printer: def _read_config(self): self.objects["configfile"] = pconfig = configfile.PrinterConfig(self) config = pconfig.read_main_config() - if self.bglogger is not None: - pconfig.log_config(config) # Create printer components for m in [pins, mcu]: m.add_printer_objects(config) @@ -217,12 +215,6 @@ class Printer: logging.exception("Unhandled exception during post run") return run_result - def set_rollover_info(self, name, info, log=True): - if log: - logging.info(info) - if self.bglogger is not None: - self.bglogger.set_rollover_info(name, info) - def invoke_shutdown(self, msg, details={}): if self.in_shutdown_state: return @@ -314,9 +306,6 @@ def main(): help="path to where SAVE_CONFIG should store the runtime configuration", ) opts.add_option( - "-l", "--logfile", dest="logfile", help="write log to file instead of stderr" - ) - opts.add_option( "-v", action="store_true", dest="verbose", help="enable debug messages" ) opts.add_option( @@ -360,12 +349,7 @@ def main(): if options.debugoutput: start_args["debugoutput"] = options.debugoutput start_args.update(options.dictionary) - bglogger = None - if options.logfile: - start_args["log_file"] = options.logfile - bglogger = queuelogger.setup_bg_logging(options.logfile, debuglevel) - else: - logging.getLogger().setLevel(debuglevel) + bglogger = queuelogger.setup_bg_logging(debuglevel) logging.info("Starting Klippy...") start_args["software_version"] = __version__ start_args["cpu_info"] = util.get_cpu_info() @@ -386,9 +370,6 @@ def main(): # Start Printer() class while 1: - if bglogger is not None: - bglogger.clear_rollover_info() - bglogger.set_rollover_info("versions", versions) gc.collect() main_reactor = reactor.Reactor(gc_checking=True) printer = Printer(main_reactor, bglogger, start_args) |