Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
Set default log level to info
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed May 3, 2020
1 parent b52a525 commit 76775bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/rkd/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/rkd/inputoutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 76775bd

Please sign in to comment.