From c50f83400a68af5b188e932b73680e6e4ab548e6 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 11 Apr 2016 22:37:42 -0400 Subject: [PATCH] make version callable during startup --- lbrynet/lbrynet_daemon/LBRYDaemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index f08ed654d..568d74827 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -198,7 +198,8 @@ class LBRYDaemon(jsonrpc.JSONRPC): if not self.announced_startup: if functionPath not in ['is_running', 'is_first_run', 'get_time_behind_blockchain', 'stop', - 'daemon_status', 'get_start_notice']: + 'daemon_status', 'get_start_notice', + 'version']: return server.failure try: @@ -919,6 +920,8 @@ class LBRYDaemon(jsonrpc.JSONRPC): "lbryum version: ": lbryum_version, "ui_version": self.ui_version, } + + log.info("[" + str(datetime.now()) + "] Get version info: " + json.dumps(msg)) return self._render_response(msg, OK_CODE) def jsonrpc_get_settings(self):