Fix logging format

In change-id I9f415038ed716f89a3d95b5e102458b815947dec an incomplete
logging format was added resulting in the log messages no longer being
logged. This corrects the issue by appending the log message to the
log-line format.

Change-Id: I7dd12b92cb366c7ed3f65adac089aca7143d813d
This commit is contained in:
Jonathan Harker 2014-08-03 14:48:59 -07:00
parent 4063937f84
commit 002e1526c4
3 changed files with 12 additions and 6 deletions

View File

@ -57,7 +57,8 @@ instructions there to upload your change to Gerrit.
def main():
logging.basicConfig(level=logging.ERROR,
format='%(asctime)-6s: %(name)s - %(levelname)s')
format='%(asctime)-6s: %(name)s - %(levelname)s'
' - %(message)s')
GITHUB_SECURE_CONFIG = os.environ.get('GITHUB_SECURE_CONFIG',
'/etc/github/github.secure.config')

View File

@ -529,13 +529,16 @@ def main():
if args.debug:
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)-6s: %(name)s - %(levelname)s')
format='%(asctime)-6s: %(name)s - %(levelname)s'
' - %(message)s')
elif args.verbose:
logging.basicConfig(level=logging.INFO,
format='%(asctime)-6s: %(name)s - %(levelname)s')
format='%(asctime)-6s: %(name)s - %(levelname)s'
' - %(message)s')
else:
logging.basicConfig(level=logging.ERROR,
format='%(asctime)-6s: %(name)s - %(levelname)s')
format='%(asctime)-6s: %(name)s - %(levelname)s'
' - %(message)s')
default_has_github = registry.get_defaults('has-github', True)

View File

@ -157,10 +157,12 @@ def main():
if args.verbose:
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)-6s: %(name)s - %(levelname)s')
format='%(asctime)-6s: %(name)s - %(levelname)s'
' - %(message)s')
else:
logging.basicConfig(level=logging.ERROR,
format='%(asctime)-6s: %(name)s - %(levelname)s')
format='%(asctime)-6s: %(name)s - %(levelname)s'
' - %(message)s')
# they're a first-timer, post the message on 1st patchset
if is_newbie(args.uploader) and args.patchset == '1' and not args.dryrun: