From f35418a52ef93aeedf1a2ae314c3e18b62a680c5 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 21 Sep 2024 20:53:30 +0200 Subject: devmode: print request --- lib/Travel/Status/DE/EFA.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm index bbb25b7..3b05cc1 100644 --- a/lib/Travel/Status/DE/EFA.pm +++ b/lib/Travel/Status/DE/EFA.pm @@ -284,6 +284,13 @@ sub new { return $self; } + if ( $self->{developer_mode} ) { + say 'POST ' . $self->{efa_url}; + while ( my ( $key, $value ) = each %{ $self->{post} } ) { + printf( "%30s = %s\n", $key, $value ); + } + } + my $response = $self->{ua}->post( $self->{efa_url}, $self->{post} ); if ( $response->is_error ) { -- cgit v1.2.3