• Cyrill Gorcunov's avatar
    log: log-engine slight redesign · 7aa8e4b6
    Cyrill Gorcunov authored
    The messages are filtered by their type
    
        LOG_MSG     - plain messages, they escape any (!) log level
                      filtration and go to stdout
        LOG_ERROR   - error messages
        LOG_WARN    - warning messages
        LOG_INFO    - informative messages
        LOG_DEBUG   - debug messages
    
    By default the LOG_WARN log level is used, thus LOG_INFO
    and LOG_DEBUG messages will not appear in output stream.
    
    pr_panic helper was replaced with pr_err, pr_warning
    shorthanded to pr_warn and old printk if rather pr_msg
    now.
    
    Because we share messages between "show" and "dump" actions,
    before the "show" action proceed we need to tune up
    log level and set it to LOG_INFO.
    
    Also note that printing of VMA and siginfo now
    became LOG_INFO messages, it was not that correct
    to print them regardless the log level.
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    7aa8e4b6
Name
Last commit
Last update
Documentation Loading commit data...
include Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
Makefile.inc Loading commit data...
README Loading commit data...
cr-dump.c Loading commit data...
cr-restore.c Loading commit data...
cr-show.c Loading commit data...
crtools.c Loading commit data...
file-ids.c Loading commit data...
files.c Loading commit data...
gen-offsets.sh Loading commit data...
ipc_ns.c Loading commit data...
libnetlink.c Loading commit data...
log.c Loading commit data...
namespaces.c Loading commit data...
parasite-syscall.c Loading commit data...
parasite.c Loading commit data...
parasite.lds.S Loading commit data...
proc_parse.c Loading commit data...
ptrace.c Loading commit data...
rbtree.c Loading commit data...
restorer-log.c Loading commit data...
restorer.c Loading commit data...
restorer.lds.S Loading commit data...
sockets.c Loading commit data...
sysctl.c Loading commit data...
util-net.c Loading commit data...
util.c Loading commit data...
uts_ns.c Loading commit data...