diff --git a/dvc/config.py b/dvc/config.py index 3004562a5..6a0372f5b 100644 --- a/dvc/config.py +++ b/dvc/config.py @@ -105,7 +105,6 @@ SCHEMA = { "core": { "remote": Lower, "checksum_jobs": All(Coerce(int), Range(1)), - "loglevel": All(Lower, Choices("info", "debug", "warning", "error")), Optional("interactive", default=False): Bool, Optional("analytics", default=True): Bool, Optional("hardlink_lock", default=False): Bool, diff --git a/dvc/repo/__init__.py b/dvc/repo/__init__.py index 20153261f..36dc6b073 100644 --- a/dvc/repo/__init__.py +++ b/dvc/repo/__init__.py @@ -1,4 +1,3 @@ -import logging import os from contextlib import contextmanager from functools import wraps @@ -21,9 +20,6 @@ from dvc.utils.fs import path_isin from .graph import check_acyclic, get_pipeline, get_pipelines -logger = logging.getLogger(__name__) - - def locked(f): @wraps(f) def wrapper(repo, *args, **kwargs): @@ -100,10 +96,6 @@ class Repo(object): # 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)