diff options
author | Dave Arter <davea@mysociety.org> | 2015-10-06 11:50:48 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2015-10-06 11:50:48 +0100 |
commit | 2ed2c57659c0d288cd1cec391baef9faf002030d (patch) | |
tree | 742c5ad6e4671050805292061f85e9ff6ec308a0 /perllib/FixMyStreet/Geocode/Zurich.pm | |
parent | de8ba7899dd4692cdf062f4b2735157f7fd14cb7 (diff) | |
parent | ffc03ca3330a43a98a3728df6f3d56c7fc1837d1 (diff) |
Merge branch 'zurich-2015-dev-candidate'
This is the work done in early 2015 to improve the Zürich admin interface, primarily.
Diffstat (limited to 'perllib/FixMyStreet/Geocode/Zurich.pm')
-rw-r--r-- | perllib/FixMyStreet/Geocode/Zurich.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Geocode/Zurich.pm b/perllib/FixMyStreet/Geocode/Zurich.pm index aad918b0e..50a7c355e 100644 --- a/perllib/FixMyStreet/Geocode/Zurich.pm +++ b/perllib/FixMyStreet/Geocode/Zurich.pm @@ -31,6 +31,7 @@ sub setup_soap { my $action = "$attr/IFixMyZuerich/"; require SOAP::Lite; + # SOAP::Lite->import( +trace => [transport => \&log_message ] ); # Set up the SOAP handler $security = SOAP::Header->name("Security")->attr({ @@ -109,5 +110,15 @@ sub string { return { error => $error }; } +sub log_message { + my ($in) = @_; + eval { + printf "log_message [$in]: %s\n\n", $in->content; # ...for example + }; + if ($@) { + print "log_message [$in]: ???? \n\n"; + } +} + 1; |