From b3692529d65179abff9ec52c7da27692c0bfc809 Mon Sep 17 00:00:00 2001 From: Sylvia McLaughlin <85905333+sylviamclaughlin@users.noreply.github.com> Date: Wed, 27 Mar 2024 20:30:49 +0000 Subject: [PATCH] Modifying the logging message to be more descriptive when the channel has been archived --- app/modules/incident/incident_helper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/modules/incident/incident_helper.py b/app/modules/incident/incident_helper.py index 80c1ed2b..40d99c14 100644 --- a/app/modules/incident/incident_helper.py +++ b/app/modules/incident/incident_helper.py @@ -360,7 +360,9 @@ def close_incident(client, body, ack): ) else: # Log the message that the user has archived the channel. - logging.info(f"<@{user_id}> has archived this channel") + logging.info( + "Channel %s has been archived by %s", channel_name, f"<@{user_id}>" + ) def stale_incidents(client, body, ack):