always store traewelling errors in debug mode

for the most part, they're not actionable. also, they're already available in
user logs.
This commit is contained in:
Daniel Friesel 2022-12-23 21:30:28 +01:00
parent 44ced8056c
commit e15778be0d
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -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->{model}->log(
uid => $opt{uid},
message =>