From e15778be0d3e0bfa89ac607cab53ab7ab37778f6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 23 Dec 2022 21:30:28 +0100 Subject: [PATCH] always store traewelling errors in debug mode for the most part, they're not actionable. also, they're already available in user logs. --- lib/Travelynx/Helper/Traewelling.pm | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/Travelynx/Helper/Traewelling.pm b/lib/Travelynx/Helper/Traewelling.pm index 8794b6e..85bb361 100644 --- a/lib/Travelynx/Helper/Traewelling.pm +++ b/lib/Travelynx/Helper/Traewelling.pm @@ -380,17 +380,8 @@ sub checkin { $err_msg .= ' ' . $tx->res->body; } } - if ( $err->{code} != 409 - and $err->{code} != 406 - and $err->{code} != 401 ) - { - $self->{log} - ->warn("Traewelling $debug_prefix error: $err_msg"); - } - else { - $self->{log} - ->debug("Traewelling $debug_prefix error: $err_msg"); - } + $self->{log} + ->debug("Traewelling $debug_prefix error: $err_msg"); $self->{model}->log( uid => $opt{uid}, message =>