From 24cbe24a5dd4bfb88ef3af2e0c649310c409dc6d Mon Sep 17 00:00:00 2001 From: Maria Lisina Date: Mon, 2 Mar 2026 20:31:27 +0300 Subject: */*: Log failed config mkdir Signed-off-by: Maria Lisina --- operators/callback_short.zsh | 3 +++ units/ib_auth.zsh | 4 ++++ units/sn_auth.zsh | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/operators/callback_short.zsh b/operators/callback_short.zsh index a48a27c..120668f 100644 --- a/operators/callback_short.zsh +++ b/operators/callback_short.zsh @@ -24,6 +24,9 @@ if ! mkdir -p "${shorts_config}" then notification_text="Failed to create user config" + log_text="callback_short (${update_id}): ${notification_text}" + source "${units}/log.zsh" + rmdir "${user_config}_shorts.lock" return fi diff --git a/units/ib_auth.zsh b/units/ib_auth.zsh index 0b4235f..e206a47 100644 --- a/units/ib_auth.zsh +++ b/units/ib_auth.zsh @@ -27,6 +27,10 @@ fi if ! mkdir -p "${auth_dir}" then output_text="Failed to create user config" + + log_text="ib_auth (${update_id}): ${output_text}" + source "${units}/log.zsh" + return fi diff --git a/units/sn_auth.zsh b/units/sn_auth.zsh index 028dcb8..67e1e2d 100644 --- a/units/sn_auth.zsh +++ b/units/sn_auth.zsh @@ -20,6 +20,10 @@ fi if ! mkdir -p "${user_config}" then output_text="Failed to create user config" + + log_text="sn_auth (${update_id}): ${output_text}" + source "${units}/log.zsh" + return fi -- cgit v1.2.3