From 76775bdd127c8c4f8e16097195438720c64c70fb Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Mon, 4 May 2020 00:02:58 +0200 Subject: [PATCH] Set default log level to info --- src/rkd/context.py | 4 ++-- src/rkd/inputoutput.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rkd/context.py b/src/rkd/context.py index 96f708a4..d3777762 100644 --- a/src/rkd/context.py +++ b/src/rkd/context.py @@ -7,7 +7,7 @@ from .syntax import TaskDeclaration, TaskAliasDeclaration, GroupDeclaration from .contract import ContextInterface from .argparsing import CommandlineParsingHelper -from .inputoutput import SystemIO, LEVEL_WARNING as LOG_LEVEL_WARNING +from .inputoutput import SystemIO, LEVEL_INFO as LOG_LEVEL_INFO from .exception import TaskNotFoundException @@ -168,6 +168,6 @@ def create_unified_context(self, chdir: str = '') -> Context: # system wide IO instance with defaults, the :init task should override those settings ctx.io = SystemIO() ctx.io.silent = True - ctx.io.log_level = LOG_LEVEL_WARNING + ctx.io.log_level = LOG_LEVEL_INFO return ctx diff --git a/src/rkd/inputoutput.py b/src/rkd/inputoutput.py index e851a54f..3afeac01 100644 --- a/src/rkd/inputoutput.py +++ b/src/rkd/inputoutput.py @@ -41,7 +41,7 @@ class IO: """ Interacting with input and output - stdout/stderr/stdin, logging """ silent = False - log_level = LEVEL_ERROR + log_level = LEVEL_INFO @contextmanager def capture_descriptors(self, target_file: str = None):