// Log the call, with the method and parameters
char* params_str = jsonObjectToJSON( ctx->params );
if( params_str ) {
- osrfLogInfo( OSRF_LOG_MARK, "CALL:\t%s %s - %s",
- ctx->session->remote_service, ctx->method->name, params_str );
+ // params_str will at minimum be "[]"
+ params_str[strlen(params_str) - 1] = '\0'; // drop the trailing ']'
+ osrfLogInfo( OSRF_LOG_MARK, "CALL: %s %s %s",
+ ctx->session->remote_service, ctx->method->name, params_str + 1);
free( params_str );
}
return 0;
my @p = $app_msg->params;
my $method_name = $app_msg->method;
my $method_proto = $session->last_message_api_level;
- $log->info("CALL: $method_name [". (@p ? join(', ',@p) : '') ."]");
+ $log->info("CALL: ".$session->service." $method_name ". (@p ? join(', ',@p) : ''));
my $coderef = $app->method_lookup( $method_name, $method_proto, 1, 1 );