Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repo: Prevent repo from setting log level #3321

Merged
merged 4 commits into from
Feb 13, 2020
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions dvc/repo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging
import os
from contextlib import contextmanager
from functools import wraps
Expand All @@ -21,9 +20,6 @@
from .graph import check_acyclic, get_pipeline, get_pipelines


logger = logging.getLogger(__name__)


def locked(f):
@wraps(f)
def wrapper(repo, *args, **kwargs):
Expand Down Expand Up @@ -100,10 +96,6 @@ def __init__(self, root_dir=None):
# any possible state corruption in 'shared cache dir' scenario.
self.state = State(self)

level = self.config.get("core", {}).get("loglevel")
if level:
logger.setLevel(level.upper())

self.cache = Cache(self)
self.cloud = DataCloud(self)

Expand Down