From 656c2117924eafb90cb18a874607ef19572e3cfc Mon Sep 17 00:00:00 2001 From: Jason Eu Date: Tue, 21 Jul 2020 17:32:53 +0800 Subject: [PATCH] let circus loglevel configurable --- aiida/engine/daemon/client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aiida/engine/daemon/client.py b/aiida/engine/daemon/client.py index 7cafc5f2ef..e239a51728 100644 --- a/aiida/engine/daemon/client.py +++ b/aiida/engine/daemon/client.py @@ -17,7 +17,7 @@ import socket import tempfile -from aiida.manage.configuration import get_config +from aiida.manage.configuration import get_config, get_config_option VERDI_BIN = shutil.which('verdi') # Recent versions of virtualenv create the environment variable VIRTUAL_ENV @@ -63,7 +63,6 @@ class DaemonClient: # pylint: disable=too-many-public-methods DAEMON_ERROR_TIMEOUT = 'daemon-error-timeout' _DAEMON_NAME = 'aiida-{name}' - _DEFAULT_LOGLEVEL = 'INFO' _ENDPOINT_PROTOCOL = ControllerProtocol.IPC def __init__(self, profile): @@ -103,7 +102,7 @@ def cmd_string(self): @property def loglevel(self): - return self._DEFAULT_LOGLEVEL + return get_config_option('logging.circus_loglevel') @property def virtualenv(self):