diff --git a/docker_squash/cli.py b/docker_squash/cli.py index 73e981d..c7c3ea8 100644 --- a/docker_squash/cli.py +++ b/docker_squash/cli.py @@ -50,7 +50,7 @@ def __init__(self): self.log = logging.getLogger() formatter = logging.Formatter( - "%(asctime)s %(name)-12s %(levelname)-8s %(message)s" + "%(asctime)s %(filename)s:%(lineno)-10s %(levelname)-5s %(message)s" ) handler_out.setFormatter(formatter) diff --git a/docker_squash/image.py b/docker_squash/image.py index 35bf6ec..8f0c679 100644 --- a/docker_squash/image.py +++ b/docker_squash/image.py @@ -18,7 +18,6 @@ class Chdir(object): - """Context manager for changing the current working directory""" def __init__(self, newPath): diff --git a/tests/test_integ_squash.py b/tests/test_integ_squash.py index ff6cc17..73d7525 100644 --- a/tests/test_integ_squash.py +++ b/tests/test_integ_squash.py @@ -37,7 +37,9 @@ class IntegSquash(unittest.TestCase): log = logging.getLogger() handler = logging.StreamHandler() - formatter = logging.Formatter("%(asctime)s %(name)-12s %(levelname)-8s %(message)s") + formatter = logging.Formatter( + "%(asctime)s %(filename)s:%(lineno)-10s %(levelname)-5s %(message)s" + ) handler.setFormatter(formatter) log.addHandler(handler) log.setLevel(logging.DEBUG)