1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

main: add extra log info to output the exit status

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
Julien Fortin
2020-01-15 16:21:17 +01:00
parent 8e9960454d
commit 9873823902
2 changed files with 4 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ def stand_alone():
NetlinkListenerWithCache.get_instance().cleanup()
except NetlinkListenerWithCacheErrorNotInitialized:
status = Status.Client.STATUS_NLERROR
LogManager.get_instance().write("exit status %s" % status)
return status

View File

@@ -222,3 +222,6 @@ class LogManager:
self.disable_console()
self.set_daemon_logging_level(args)
def write(self, msg):
root_logger.info(msg)