Traewelling: checkin: HTTP 401 is mostly harmless, too
401 typically indicates an expired login token
This commit is contained in:
parent
537d3f4aa5
commit
e2e33de7e1
1 changed files with 4 additions and 1 deletions
|
@ -353,7 +353,10 @@ sub checkin {
|
||||||
my ($tx) = @_;
|
my ($tx) = @_;
|
||||||
if ( my $err = $tx->error ) {
|
if ( my $err = $tx->error ) {
|
||||||
my $err_msg = "HTTP $err->{code} $err->{message}";
|
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");
|
$self->{log}->warn("Traewelling checkin error: $err_msg");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue