[game-data-packager] 06/06: Stop calling logging.basicConfig

Simon McVittie smcv at debian.org
Mon Jan 25 10:26:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch master
in repository game-data-packager.

commit fba7cb45d73131c4e2a1ee9faf9b281d6305cd17
Author: Simon McVittie <smcv at debian.org>
Date:   Mon Jan 25 10:23:17 2016 +0000

    Stop calling logging.basicConfig
    
    It's unnecessary in Python 3.
---
 game_data_packager/__init__.py     | 1 -
 game_data_packager/command_line.py | 1 -
 runtime/launcher.py                | 1 -
 3 files changed, 3 deletions(-)

diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 2c19012..7f1fab6 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -36,7 +36,6 @@ from .paths import (DATADIR, USE_VFS)
 from .util import ascii_safe
 from .version import (GAME_PACKAGE_VERSION)
 
-logging.basicConfig()
 logger = logging.getLogger(__name__)
 
 if os.environ.get('DEBUG') or os.environ.get('GDP_DEBUG'):
diff --git a/game_data_packager/command_line.py b/game_data_packager/command_line.py
index 0cf7960..17521a3 100644
--- a/game_data_packager/command_line.py
+++ b/game_data_packager/command_line.py
@@ -31,7 +31,6 @@ from .paths import (DATADIR)
 from .steam import (run_steam_meta_mode)
 from .util import (human_size)
 
-logging.basicConfig()
 logger = logging.getLogger(__name__)
 
 class TerminalProgress(ProgressCallback):
diff --git a/runtime/launcher.py b/runtime/launcher.py
index c795343..2c9773c 100755
--- a/runtime/launcher.py
+++ b/runtime/launcher.py
@@ -50,7 +50,6 @@ os.environ.setdefault('XDG_DATA_HOME', os.path.expanduser('~/.local/share'))
 os.environ.setdefault('XDG_DATA_DIRS', '/usr/local/share:/usr/share')
 
 logger = logging.getLogger('game-data-packager.launcher')
-logging.basicConfig()
 
 if os.environ.get('GDP_DEBUG'):
     logger.setLevel(logging.DEBUG)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list