summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_rpc_process.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-11-10 22:59:05 -0500
committerRobbie Harwood <rharwood@redhat.com>2015-12-01 17:33:42 -0500
commit71d316dfc51bcb9e18da61fb7299bb021523cde4 (patch)
treeac4046a1df6db33c293beee31c0fe190ddb2ab85 /proxy/src/gp_rpc_process.c
parent0577e929ef896944b2f852f0c3071684e9b282aa (diff)
downloadgss-proxy-71d316dfc51bcb9e18da61fb7299bb021523cde4.tar.gz
gss-proxy-71d316dfc51bcb9e18da61fb7299bb021523cde4.tar.xz
gss-proxy-71d316dfc51bcb9e18da61fb7299bb021523cde4.zip
Add options to specify a debug level
Print only messages that are at that level or lower. Also add timestamps to debug messages. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Robbie Harwood <rharwood@redhat.com>
Diffstat (limited to 'proxy/src/gp_rpc_process.c')
-rw-r--r--proxy/src/gp_rpc_process.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/proxy/src/gp_rpc_process.c b/proxy/src/gp_rpc_process.c
index f4ad2f8..d1a0232 100644
--- a/proxy/src/gp_rpc_process.c
+++ b/proxy/src/gp_rpc_process.c
@@ -313,9 +313,10 @@ static const char *gp_rpc_procname(uint32_t proc)
static int gp_rpc_execute(struct gp_call_ctx *gpcall, uint32_t proc,
union gp_rpc_arg *arg, union gp_rpc_res *res)
{
- GPDEBUG("gp_rpc_execute: executing %d (%s) for service \"%s\", euid: %d, socket: %s\n",
- proc, gp_rpc_procname(proc), gpcall->service->name,
- gp_conn_get_uid(gpcall->connection), gpcall->service->socket);
+ GPDEBUG("gp_rpc_execute: executing %d (%s) for service \"%s\", euid: %d,"
+ "socket: %s\n", proc, gp_rpc_procname(proc),
+ gpcall->service->name, gp_conn_get_uid(gpcall->connection),
+ gpcall->service->socket);
return gp_xdr_set[proc].exec_fn(gpcall, arg, res);
}