Fixes usage of a depracated logger method

This commit is contained in:
Trenton H 2022-10-10 14:16:54 -07:00
parent f96ee4f7a0
commit 5aeb656a48

View File

@ -742,7 +742,7 @@ class TasksViewSerializer(serializers.ModelSerializer):
result = filepath.name
except Exception as e: # pragma: no cover
# Extra security if something is malformed
logger.warn(f"Error getting file name from task: {e}", exc_info=True)
logger.warning(f"Error getting file name from task: {e}", exc_info=True)
return result