summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Helper/Traewelling.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-02-06 16:34:03 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-02-06 16:34:03 +0100
commit6c015a91b89b19117fbad861b271db377a661739 (patch)
tree9f5e829675ea10d23afb3c0e8eb266e38564bc6a /lib/Travelynx/Helper/Traewelling.pm
parent9223ba5fa1a3ab203bba1fb54e9d2a5772f0b0d8 (diff)
Traewelling: Do not warn on 409 Conflict
Diffstat (limited to 'lib/Travelynx/Helper/Traewelling.pm')
-rw-r--r--lib/Travelynx/Helper/Traewelling.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Travelynx/Helper/Traewelling.pm b/lib/Travelynx/Helper/Traewelling.pm
index 2a8b5d5..d22e799 100644
--- a/lib/Travelynx/Helper/Traewelling.pm
+++ b/lib/Travelynx/Helper/Traewelling.pm
@@ -330,7 +330,12 @@ sub checkin {
my ($tx) = @_;
if ( my $err = $tx->error ) {
my $err_msg = "HTTP $err->{code} $err->{message}";
- $self->{log}->warn("Traewelling checkin error: $err_msg");
+ if ( $err->{code} != 409 ) {
+ $self->{log}->warn("Traewelling checkin error: $err_msg");
+ }
+ else {
+ $self->{log}->debug("Traewelling checkin error: $err_msg");
+ }
$self->{model}->log(
uid => $opt{uid},
message =>