summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-12-23 21:30:28 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-12-23 21:30:28 +0100
commite15778be0d3e0bfa89ac607cab53ab7ab37778f6 (patch)
tree4cf0f61b0bfe6ec39b2836ab963456ef48d2f9df /lib
parent44ced8056c0fd4ae7b22fe1ae8e38c072f0ba4c1 (diff)
always store traewelling errors in debug mode
for the most part, they're not actionable. also, they're already available in user logs.
Diffstat (limited to 'lib')
-rw-r--r--lib/Travelynx/Helper/Traewelling.pm13
1 files 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 =>