fix typos ("log.warn" => "LOG.warning" => "log.warning")

This commit is contained in:
Paul Franklin 2016-07-05 23:06:01 -07:00
parent ec8d141525
commit de382fdb0c
2 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ class PackageWriter:
try:
archive = tarfile.open(self.filename,'w:gz')
except EnvironmentError as msg:
LOG.warning(str(msg))
log.warning(str(msg))
self.user.notify_error(_('Failure writing %s') % self.filename, str(msg))
return 0

View File

@ -1394,7 +1394,7 @@ class CairoDoc(BaseDoc, TextDoc, DrawDoc):
elif fe[-1] != self.EXT:
# NOTE: the warning will be bogus
# if the EXT isn't properly overridden by derived class
LOG.warning(_(
log.warning(_(
"""Mismatch between selected extension %(ext)s and actual format.
Writing to %(filename)s in format %(impliedext)s.""") %
{'ext' : fe[-1],