Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Commit

Permalink
Added output of request JSON content when 'verbose' is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinkham committed Jun 9, 2013
1 parent 71d0c24 commit a9f25ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Business/SiteCatalyst.pm
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ sub send_request

$request->content_type('application/json');
$request->content( $json_in );

carp "Request content: >$json_in<" if $verbose;

my $user_agent = LWP::UserAgent->new();
my $response = $user_agent->request($request);
Expand Down

0 comments on commit a9f25ea

Please sign in to comment.