1
0
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:
Hongli Lai 2014-07-03 11:36:04 +02:00
commit 73d900dece

View File

@ -22,15 +22,15 @@ def error(message):
def warn(message):
if log_level >= LOG_LEVEL_WARN:
print("*** %s" % message)
sys.stderr.write("*** %s\n" % message)
def info(message):
if log_level >= LOG_LEVEL_INFO:
print("*** %s" % message)
sys.stderr.write("*** %s\n" % message)
def debug(message):
if log_level >= LOG_LEVEL_DEBUG:
print("*** %s" % message)
sys.stderr.write("*** %s\n" % message)
def ignore_signals_and_raise_keyboard_interrupt(signame):
signal.signal(signal.SIGTERM, signal.SIG_IGN)