[game-data-packager] 01/01: Consistently use __name__ for all loggers
Simon McVittie
smcv at debian.org
Sun Jan 24 15:06:04 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 00565bfc9ce27293b0ec56f77ca2f8847ec36e40
Author: Simon McVittie <smcv at debian.org>
Date: Sun Jan 24 15:05:55 2016 +0000
Consistently use __name__ for all loggers
---
game_data_packager/__init__.py | 2 +-
game_data_packager/build.py | 2 +-
game_data_packager/config.py | 2 +-
game_data_packager/games/doom_common.py | 2 +-
game_data_packager/games/dosbox.py | 2 +-
game_data_packager/games/ecwolf_common.py | 2 +-
game_data_packager/games/lgeneral.py | 2 +-
game_data_packager/games/morrowind.py | 2 +-
game_data_packager/games/quake.py | 2 +-
game_data_packager/games/quake2.py | 2 +-
game_data_packager/games/residualvm_common.py | 2 +-
game_data_packager/games/rott.py | 2 +-
game_data_packager/games/scummvm_common.py | 2 +-
game_data_packager/games/unreal.py | 2 +-
game_data_packager/games/wolf3d.py | 2 +-
game_data_packager/games/z_code.py | 2 +-
game_data_packager/gog.py | 2 +-
game_data_packager/make_template.py | 2 +-
game_data_packager/steam.py | 2 +-
game_data_packager/util.py | 2 +-
20 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index ac048b6..321218e 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -37,7 +37,7 @@ from .util import ascii_safe
from .version import (DISTRO, FORMAT, GAME_PACKAGE_VERSION)
logging.basicConfig()
-logger = logging.getLogger('game-data-packager')
+logger = logging.getLogger(__name__)
MD5SUM_DIVIDER = re.compile(r' [ *]?')
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index a2160c6..f321630 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -58,7 +58,7 @@ if FORMAT == 'deb':
from debian.deb822 import Deb822
logging.basicConfig()
-logger = logging.getLogger('game-data-packager.build')
+logger = logging.getLogger(__name__)
# arbitrary cutoff for providing progress bars
QUITE_LARGE = 50 * MEBIBYTE
diff --git a/game_data_packager/config.py b/game_data_packager/config.py
index 229a7c6..ed43f36 100644
--- a/game_data_packager/config.py
+++ b/game_data_packager/config.py
@@ -20,7 +20,7 @@ import re
from .paths import CONFIG
-logger = logging.getLogger('game-data-packager.config')
+logger = logging.getLogger(__name__)
COMMENT = re.compile(r'#.*')
OPTION = re.compile('^([A-Z_]+)=(["\']?)(.*)\\2$')
diff --git a/game_data_packager/games/doom_common.py b/game_data_packager/games/doom_common.py
index e09094b..d0cff19 100644
--- a/game_data_packager/games/doom_common.py
+++ b/game_data_packager/games/doom_common.py
@@ -27,7 +27,7 @@ from ..paths import DATADIR
from ..util import (copy_with_substitutions, mkdir_p)
from ..version import (FORMAT)
-logger = logging.getLogger('game-data-packager.games.doom-common')
+logger = logging.getLogger(__name__)
def install_data(from_, to):
subprocess.check_call(['cp', '--reflink=auto', from_, to])
diff --git a/game_data_packager/games/dosbox.py b/game_data_packager/games/dosbox.py
index 704b463..9bb7389 100755
--- a/game_data_packager/games/dosbox.py
+++ b/game_data_packager/games/dosbox.py
@@ -26,7 +26,7 @@ from .. import GameData
from ..build import (PackagingTask)
from ..util import (mkdir_p)
-logger = logging.getLogger('game-data-packager.games.dosbox')
+logger = logging.getLogger(__name__)
class DosboxGameData(GameData):
"""Special subclass of GameData for DOS games.
diff --git a/game_data_packager/games/ecwolf_common.py b/game_data_packager/games/ecwolf_common.py
index 98a16ca..4298342 100644
--- a/game_data_packager/games/ecwolf_common.py
+++ b/game_data_packager/games/ecwolf_common.py
@@ -26,7 +26,7 @@ from ..build import (PackagingTask)
from ..paths import DATADIR
from ..util import (mkdir_p)
-logger = logging.getLogger('game-data-packager.games.ecwolf-common')
+logger = logging.getLogger(__name__)
def install_data(from_, to):
subprocess.check_call(['cp', '--reflink=auto', from_, to])
diff --git a/game_data_packager/games/lgeneral.py b/game_data_packager/games/lgeneral.py
index fdda483..11bcef0 100644
--- a/game_data_packager/games/lgeneral.py
+++ b/game_data_packager/games/lgeneral.py
@@ -23,7 +23,7 @@ from .. import (GameData)
from ..build import (PackagingTask, NoPackagesPossible)
from ..util import (mkdir_p, which)
-logger = logging.getLogger('game-data-packager.games.lgeneral')
+logger = logging.getLogger(__name__)
class LGeneralGameData(GameData):
def add_parser(self, parsers, base_parser):
diff --git a/game_data_packager/games/morrowind.py b/game_data_packager/games/morrowind.py
index 7a25c1a..2ecea21 100644
--- a/game_data_packager/games/morrowind.py
+++ b/game_data_packager/games/morrowind.py
@@ -22,7 +22,7 @@ from .. import (GameData)
from ..build import (PackagingTask)
from ..util import (check_call)
-logger = logging.getLogger('game-data-packager.games.morrowind')
+logger = logging.getLogger(__name__)
class MorrowindGameData(GameData):
def construct_task(self, **kwargs):
diff --git a/game_data_packager/games/quake.py b/game_data_packager/games/quake.py
index 370faec..f36f92f 100644
--- a/game_data_packager/games/quake.py
+++ b/game_data_packager/games/quake.py
@@ -23,7 +23,7 @@ from ..build import (PackagingTask)
from ..paths import DATADIR
from ..util import TemporaryUmask, mkdir_p
-logger = logging.getLogger('game-data-packager.games.quake')
+logger = logging.getLogger(__name__)
class QuakeTask(PackagingTask):
"""With hindsight, it would have been better to make the TryExec
diff --git a/game_data_packager/games/quake2.py b/game_data_packager/games/quake2.py
index 9c12f0b..de0180b 100644
--- a/game_data_packager/games/quake2.py
+++ b/game_data_packager/games/quake2.py
@@ -23,7 +23,7 @@ import tarfile
from .. import (GameData)
from ..build import (PackagingTask)
-logger = logging.getLogger('game-data-packager.games.quake2')
+logger = logging.getLogger(__name__)
class Quake2GameData(GameData):
def construct_task(self, **kwargs):
diff --git a/game_data_packager/games/residualvm_common.py b/game_data_packager/games/residualvm_common.py
index 9ce56ed..ea0fffd 100644
--- a/game_data_packager/games/residualvm_common.py
+++ b/game_data_packager/games/residualvm_common.py
@@ -26,7 +26,7 @@ from ..build import (PackagingTask)
from ..paths import DATADIR
from ..util import (mkdir_p)
-logger = logging.getLogger('game-data-packager.games.residualvm-common')
+logger = logging.getLogger(__name__)
def install_data(from_, to):
subprocess.check_call(['cp', '--reflink=auto', from_, to])
diff --git a/game_data_packager/games/rott.py b/game_data_packager/games/rott.py
index 68617b2..08197a5 100644
--- a/game_data_packager/games/rott.py
+++ b/game_data_packager/games/rott.py
@@ -19,7 +19,7 @@ import logging
from .. import GameData
-logger = logging.getLogger('game-data-packager.games.rott')
+logger = logging.getLogger(__name__)
class ROTTGameData(GameData):
def add_parser(self, parsers, base_parser):
diff --git a/game_data_packager/games/scummvm_common.py b/game_data_packager/games/scummvm_common.py
index b16860f..05e0ac5 100644
--- a/game_data_packager/games/scummvm_common.py
+++ b/game_data_packager/games/scummvm_common.py
@@ -26,7 +26,7 @@ from ..build import (PackagingTask)
from ..paths import DATADIR
from ..util import (mkdir_p)
-logger = logging.getLogger('game-data-packager.games.scummvm-common')
+logger = logging.getLogger(__name__)
def install_data(from_, to):
subprocess.check_call(['cp', '--reflink=auto', from_, to])
diff --git a/game_data_packager/games/unreal.py b/game_data_packager/games/unreal.py
index fad48ff..bef05e2 100644
--- a/game_data_packager/games/unreal.py
+++ b/game_data_packager/games/unreal.py
@@ -22,7 +22,7 @@ from .. import (GameData)
from ..build import (PackagingTask)
from ..util import (TemporaryUmask, mkdir_p)
-logger = logging.getLogger('game-data-packager.games.unreal')
+logger = logging.getLogger(__name__)
class UnrealTask(PackagingTask):
def fill_extra_files(self, package, destdir):
diff --git a/game_data_packager/games/wolf3d.py b/game_data_packager/games/wolf3d.py
index 863a976..6e3c617 100644
--- a/game_data_packager/games/wolf3d.py
+++ b/game_data_packager/games/wolf3d.py
@@ -19,7 +19,7 @@ import logging
from .. import GameData
-logger = logging.getLogger('game-data-packager.games.wolf3d')
+logger = logging.getLogger(__name__)
class Wolf3DGameData(GameData):
def add_parser(self, parsers, base_parser):
diff --git a/game_data_packager/games/z_code.py b/game_data_packager/games/z_code.py
index 1caf4d2..61eae9b 100644
--- a/game_data_packager/games/z_code.py
+++ b/game_data_packager/games/z_code.py
@@ -29,7 +29,7 @@ from ..util import (TemporaryUmask,
mkdir_p)
from ..version import (FORMAT)
-logger = logging.getLogger('game-data-packager.games.z_code')
+logger = logging.getLogger(__name__)
class ZCodeGameData(GameData):
def __init__(self, shortname, data):
diff --git a/game_data_packager/gog.py b/game_data_packager/gog.py
index d32a303..f5ff0e7 100644
--- a/game_data_packager/gog.py
+++ b/game_data_packager/gog.py
@@ -26,7 +26,7 @@ from .util import (ascii_safe,
lang_score,
which)
-logger = logging.getLogger('game-data-packager.gog')
+logger = logging.getLogger(__name__)
class Gog:
available = None
diff --git a/game_data_packager/make_template.py b/game_data_packager/make_template.py
index f7f97fa..ac15d07 100644
--- a/game_data_packager/make_template.py
+++ b/game_data_packager/make_template.py
@@ -46,7 +46,7 @@ from .util import (
)
logging.basicConfig()
-logger = logging.getLogger('game_data_packager.make-template')
+logger = logging.getLogger(__name__)
def guess_lang(string):
string = string.lower()
diff --git a/game_data_packager/steam.py b/game_data_packager/steam.py
index 2950a49..9a4e729 100644
--- a/game_data_packager/steam.py
+++ b/game_data_packager/steam.py
@@ -31,7 +31,7 @@ from .util import (AGENT,
lang_score,
rm_rf)
-logger = logging.getLogger('game-data-packager.steam')
+logger = logging.getLogger(__name__)
def parse_acf(path):
for manifest in glob.glob(path + '/*.acf'):
diff --git a/game_data_packager/util.py b/game_data_packager/util.py
index d63a181..9cfc3eb 100644
--- a/game_data_packager/util.py
+++ b/game_data_packager/util.py
@@ -28,7 +28,7 @@ import sys
from .paths import DATADIR
from .version import (GAME_PACKAGE_VERSION)
-logger = logging.getLogger('game-data-packager.util')
+logger = logging.getLogger(__name__)
KIBIBYTE = 1024
MEBIBYTE = KIBIBYTE * KIBIBYTE
--
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