mirror of
/repos/baseimage-docker.git
synced 2025-12-31 08:11:29 +01:00
Merge pull request #106 from mephi42/master
my_init: use stderr for all logs Useful when you want to run tar within the container and pipe the archive to host.
This commit is contained in:
commit
73d900dece
@ -22,15 +22,15 @@ def error(message):
|
|||||||
|
|
||||||
def warn(message):
|
def warn(message):
|
||||||
if log_level >= LOG_LEVEL_WARN:
|
if log_level >= LOG_LEVEL_WARN:
|
||||||
print("*** %s" % message)
|
sys.stderr.write("*** %s\n" % message)
|
||||||
|
|
||||||
def info(message):
|
def info(message):
|
||||||
if log_level >= LOG_LEVEL_INFO:
|
if log_level >= LOG_LEVEL_INFO:
|
||||||
print("*** %s" % message)
|
sys.stderr.write("*** %s\n" % message)
|
||||||
|
|
||||||
def debug(message):
|
def debug(message):
|
||||||
if log_level >= LOG_LEVEL_DEBUG:
|
if log_level >= LOG_LEVEL_DEBUG:
|
||||||
print("*** %s" % message)
|
sys.stderr.write("*** %s\n" % message)
|
||||||
|
|
||||||
def ignore_signals_and_raise_keyboard_interrupt(signame):
|
def ignore_signals_and_raise_keyboard_interrupt(signame):
|
||||||
signal.signal(signal.SIGTERM, signal.SIG_IGN)
|
signal.signal(signal.SIGTERM, signal.SIG_IGN)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user