diff --git a/trains/backend_api/utils.py b/trains/backend_api/utils.py index ccadd234..8208a99b 100644 --- a/trains/backend_api/utils.py +++ b/trains/backend_api/utils.py @@ -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') diff --git a/trains/storage/helper.py b/trains/storage/helper.py index 7f9ebc64..ea077a79 100644 --- a/trains/storage/helper.py +++ b/trains/storage/helper.py @@ -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: