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:
@@ -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
|
||||
|
||||
|
||||
|
@@ -222,3 +222,6 @@ class LogManager:
|
||||
self.disable_console()
|
||||
|
||||
self.set_daemon_logging_level(args)
|
||||
|
||||
def write(self, msg):
|
||||
root_logger.info(msg)
|
||||
|
Reference in New Issue
Block a user