use strict; use warnings;
use OpenSRF::System;
use Time::HiRes qw/time/;
+use OpenSRF::Utils::Logger;
+my $log = "OpenSRF::Utils::Logger";
# Test script which runs queries agains the opensrf.math service and reports on
# the average round trip time of the requests.
# * connect to the Jabber network
OpenSRF::System->bootstrap_client( config_file => "/openils/conf/bootstrap.conf" );
+$log->set_service('math_bench');
# * create a new application session for the opensrf.math service
my $session = OpenSRF::AppSession->create( "opensrf.math" );
char* content = jsonObjectToJSON(response);
if(content) {
- osrfLogInfo( "----------------------------------------------\n"
- "Gateway responding with:\n%s\n"
- "----------------------------------------------", content );
+ osrfLogInfo( "Gateway responding with: %s", content );
ap_rputs(content,r);
free(content);
}
#my( $pack, $file, $line_no ) = @caller;
+ $msg = "[$n:"."$$".":::] $msg";
+
if( $level == ACTIVITY() ) {
if( is_act_syslog() ) { syslog( $fac | $l, $msg ); }
elsif( is_act_filelog() ) { _write_file( $msg, 1 ); }