Fix logging typos

This commit is contained in:
allegroai 2020-03-22 18:03:25 +02:00
parent 7817ef5cda
commit abc9b512f7
2 changed files with 3 additions and 2 deletions

View File

@ -117,7 +117,7 @@ def get_http_session_with_retry(
if not session.verify and __disable_certificate_verification_warning < 2:
# show warning
__disable_certificate_verification_warning += 1
logging.getLogger('TRAINS').warning(
logging.getLogger('trains').warning(
msg='InsecureRequestWarning: Certificate verification is disabled! Adding '
'certificate verification is strongly advised. See: '
'https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings')

View File

@ -910,7 +910,8 @@ class StorageHelper(object):
except Exception as e:
self._log.error("Calling upload callback when starting upload: %s" % str(e))
if verbose:
msg = "Starting upload: %s => %s" % (src_path, object_name)
msg = 'Starting upload: {} => {}{}'.format(src_path, self._container.name if self._container else '',
object_name)
if object_name.startswith('file://') or object_name.startswith('/'):
self._log.debug(msg)
else: