Setting logging format.
This commit is contained in:
parent
88f484c58f
commit
e103194e1a
4 changed files with 8 additions and 5 deletions
|
@ -70,3 +70,6 @@ class UpstreamOutput(object):
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "%s(%r, %r)" % (type(self).__name__, self.family, self.name)
|
return "%s(%r, %r)" % (type(self).__name__, self.family, self.name)
|
||||||
|
|
||||||
|
def get_declared_dependencies(self):
|
||||||
|
raise NotImplementedError(self.get_declared_dependencies)
|
||||||
|
|
|
@ -110,9 +110,9 @@ def main(): # noqa: C901
|
||||||
parser.print_usage()
|
parser.print_usage()
|
||||||
return 1
|
return 1
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG, format='%(message)s')
|
||||||
else:
|
else:
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO, format='%(message)s')
|
||||||
if args.schroot:
|
if args.schroot:
|
||||||
from .session.schroot import SchrootSession
|
from .session.schroot import SchrootSession
|
||||||
|
|
||||||
|
|
|
@ -665,7 +665,7 @@ def main(argv=None):
|
||||||
import contextlib
|
import contextlib
|
||||||
apt = AptManager(PlainSession())
|
apt = AptManager(PlainSession())
|
||||||
|
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO, format='%(message)s')
|
||||||
|
|
||||||
with contextlib.ExitStack() as es:
|
with contextlib.ExitStack() as es:
|
||||||
if args.output_directory is None:
|
if args.output_directory is None:
|
||||||
|
|
|
@ -204,9 +204,9 @@ if __name__ == "__main__":
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG, format='%(message)s')
|
||||||
else:
|
else:
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO, format='%(message)s')
|
||||||
|
|
||||||
tree = WorkingTree.open(args.directory)
|
tree = WorkingTree.open(args.directory)
|
||||||
if args.packaging_directory:
|
if args.packaging_directory:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue