From 5aeb656a48239352002f07ae7613ed5dff0927f1 Mon Sep 17 00:00:00 2001 From: Trenton H Date: Mon, 10 Oct 2022 14:16:54 -0700 Subject: [PATCH] Fixes usage of a depracated logger method --- src/documents/serialisers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py index 63da721d3..5f59d2c17 100644 --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -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