in mapillary_tools/upload.py [0:0]
def _api_logging_finished(user_items: types.UserItem, summary: T.Dict):
if MAPILLARY_DISABLE_API_LOGGING:
return
action: api_v4.ActionType = "upload_finished_upload"
LOG.debug("API Logging for action %s: %s", action, summary)
try:
api_v4.logging(
user_items["user_upload_token"],
action,
summary,
)
except requests.HTTPError as exc:
LOG.warning(
"Error from API Logging for action %s",
action,
exc_info=uploader.upload_api_v4.wrap_http_exception(exc),
)
except:
LOG.warning("Error from API Logging for action %s", action, exc_info=True)