[ARVADOS] created: 20d7a8b075490d434b6513eea24e99ff257601e6
Git user
git at public.curoverse.com
Mon Dec 12 11:09:53 EST 2016
at 20d7a8b075490d434b6513eea24e99ff257601e6 (commit)
commit 20d7a8b075490d434b6513eea24e99ff257601e6
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Mon Dec 12 11:09:49 2016 -0500
10587: Print arvados-node-manager package version on startup.
diff --git a/services/nodemanager/arvnodeman/launcher.py b/services/nodemanager/arvnodeman/launcher.py
index 87ce487..ec5c784 100644
--- a/services/nodemanager/arvnodeman/launcher.py
+++ b/services/nodemanager/arvnodeman/launcher.py
@@ -62,6 +62,7 @@ def setup_logging(path, level, **sublevels):
for logger_name, sublevel in sublevels.iteritems():
sublogger = logging.getLogger(logger_name)
sublogger.setLevel(sublevel)
+ return root_logger
def build_server_calculator(config):
cloud_size_list = config.node_sizes(config.new_cloud_client().list_sizes())
@@ -110,7 +111,8 @@ def main(args=None):
signal.signal(sigcode, shutdown_signal)
try:
- setup_logging(config.get('Logging', 'file'), **config.log_levels())
+ root_logger = setup_logging(config.get('Logging', 'file'), **config.log_levels())
+ root_logger.info("%s %s" % (sys.argv[0], __version__))
node_setup, node_shutdown, node_update, node_monitor = \
config.dispatch_classes()
server_calculator = build_server_calculator(config)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list