• Jérome Perrin's avatar
    cli: Output on the console even with --log-file · 38888d8a
    Jérome Perrin authored
    In 51f89902 (slapos/cli/entry.py, slapos/cli/format.py, slapos/format.py:
    Do not double the log output when "slapos node boot" failed., 2017-05-11)
    we fixed a problem that every failure during boot causing twice more output
    (which filled up the disk very fast), but a side effect was that using
    --log-file no longer cause messages to also go to the console.
    
    The "Always send higher-level messages to the console via stderr" comment
    in entry.py seems that this was always intentional to output messages on
    the console.
    
    Keep the same "don't configure again logging system when it's already
    configured", but implemented in a slightly different way, because since
    a FileHandler is a StreamHandler, the check of already having a
    StreamHandler was true also for the case where --log-file added a
    FileHander (a few lines above, also in configure_logging method)
    38888d8a
Name
Last commit
Last update
documentation Loading commit data...
master Loading commit data...
slapos Loading commit data...
.gitignore Loading commit data...
CHANGES.rst Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
bootstrap.py Loading commit data...
buildout.cfg Loading commit data...
computer_definition.cfg.example Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
slapos-client.cfg.example Loading commit data...
slapos-proxy.cfg.example Loading commit data...
slapos.cfg.example Loading commit data...