diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-01-15 22:13:20 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-01-15 22:13:20 +0100 |
commit | 243302b9bb90eb0d3f31731dea705ea42ed0c1a1 (patch) | |
tree | 90c77280dd88e66fa0b08b92cf3fabf8569cc567 /lib | |
parent | 263fe6da63d88026479c1b5493a3054d0bc9d556 (diff) |
Fix IOLoop crashes caused by using log->warning instead of log->warn1.13.4
The issue manifested itself by the ioloop using 100%cpu without making any
progress.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 2a72afc..38c0212 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1623,7 +1623,7 @@ sub startup { my ( $self, %opt ) = @_; if ( $opt{cancelled} ) { - $self->app->log->warning( + $self->app->log->warn( 'get_journey_stats called with illegal option cancelled => 1' ); return {}; @@ -2005,7 +2005,7 @@ sub startup { )->catch( sub { my ($err) = @_; - $self->app->log->warning("get($url): $err"); + $self->app->log->warn("get($url): $err"); $promise->reject($err); } )->wait; @@ -2041,7 +2041,7 @@ sub startup { $body =~ s{<SDay [^>]*/>}{}s; eval { $tree = XML::LibXML->load_xml( string => $body ) }; if ($@) { - $self->app->log->warning("load_xml($url): $@"); + $self->app->log->warn("load_xml($url): $@"); $cache->freeze( $url, $traininfo ); $promise->resolve($traininfo); return; @@ -2078,7 +2078,7 @@ sub startup { )->catch( sub { my ($err) = @_; - $self->app->log->warning("get($url): $err"); + $self->app->log->warn("get($url): $err"); $promise->reject($err); } )->wait; |