repo: Prevent repo from setting log level (#3321)

* Removed setting log level

* removed loglevel schema
This commit is contained in:
Gaurav Rai
2020-02-13 20:45:43 +02:00
committed by GitHub
parent 6ccae711fe
commit 51a5a4ec3b
2 changed files with 0 additions and 9 deletions
-1
View File
@@ -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,
-8
View File
@@ -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)