Traewelling: checkin: HTTP 401 is mostly harmless, too

401 typically indicates an expired login token
This commit is contained in:
Daniel Friesel 2022-03-06 23:13:10 +01:00
parent 537d3f4aa5
commit e2e33de7e1
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -353,7 +353,10 @@ sub checkin {
my ($tx) = @_;
if ( my $err = $tx->error ) {
my $err_msg = "HTTP $err->{code} $err->{message}";
if ( $err->{code} != 409 and $err->{code} != 406 ) {
if ( $err->{code} != 409
and $err->{code} != 406
and $err->{code} != 401 )
{
$self->{log}->warn("Traewelling checkin error: $err_msg");
}
else {