diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-08-21 12:07:40 +0500 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-08-21 12:07:40 +0500 |
| commit | fd2e84c914fb0c622b0e490300e906b1a5819b11 (patch) | |
| tree | 46cd5ff048f4c7bb82381a950f9bb6abb13d2f5d /auth | |
| parent | 374ee8871dccad1c59eaf8db23ce0a0ff34a08bf (diff) | |
auth/*: Disable extra logging and dumping
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
Diffstat (limited to 'auth')
| -rw-r--r-- | auth/donmai.zsh | 10 | ||||
| -rw-r--r-- | auth/moebooru.zsh | 6 | ||||
| -rw-r--r-- | auth/sankakucomplex.zsh | 5 |
3 files changed, 0 insertions, 21 deletions
diff --git a/auth/donmai.zsh b/auth/donmai.zsh index 995957c..f6f445f 100644 --- a/auth/donmai.zsh +++ b/auth/donmai.zsh @@ -41,22 +41,12 @@ fi if [[ "$(jq -r '.success' "${ib_auth_file}")" == "false" ]] then output_text="Error: <code>$(jq -r '.message' "${ib_auth_file}" | htmlescape)</code>" - log_text="ib_auth (${update_id}): Error: $(jq -r '.message' "${ib_auth_file}")" - - . "${units}/log.zsh" - . "${units}/dump.zsh" - return 0 fi if [[ "$(jq -r '.name' "${ib_auth_file}")" != "${ib_login}" ]] then output_text="Failed to verify user authorization" - log_text="ib_auth (${update_id}): ${output_text}" - - . "${units}/log.zsh" - . "${units}/dump.zsh" - return 0 fi diff --git a/auth/moebooru.zsh b/auth/moebooru.zsh index cb19665..5458b11 100644 --- a/auth/moebooru.zsh +++ b/auth/moebooru.zsh @@ -31,10 +31,4 @@ fi if ! jq -e '.' "${ib_auth_file}" > /dev/null then output_text="Invalid username or API key" - log_text="ib_auth (${update_id}): ${output_text}" - - . "${units}/log.zsh" - . "${units}/dump.zsh" - - return 0 fi diff --git a/auth/sankakucomplex.zsh b/auth/sankakucomplex.zsh index 86010be..45b9d3a 100644 --- a/auth/sankakucomplex.zsh +++ b/auth/sankakucomplex.zsh @@ -49,11 +49,6 @@ fi if [[ "$(jq -r '.success' "${ib_auth_file}")" != "true" ]] then output_text="Error: <code>$(jq -r '.error' "${ib_auth_file}" | htmlescape)</code>" - log_text="ib_auth (${update_id}): Error: $(jq -r '.error' "${ib_auth_file}")" - - . "${units}/log.zsh" - . "${units}/dump.zsh" - return 0 fi |
