diff options
author | 2011-01-30 23:52:56 +0000 | |
---|---|---|
committer | 2011-01-30 23:52:56 +0000 | |
commit | e6ca20c69a092dd7d97d05927a02bcd385d7f898 (patch) | |
tree | 65cf9eb1cb097b22a1bc4b65553cf8c9e80a024d /src/dispatch.c | |
parent | e7a008aeed65e06d9e17dcc5e98121012540e3a2 (diff) |
copy of transmission svg icon, in/out logging with -DDEBUG only
Diffstat (limited to 'src/dispatch.c')
-rw-r--r-- | src/dispatch.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dispatch.c b/src/dispatch.c index 5620c6a..69c0187 100644 --- a/src/dispatch.c +++ b/src/dispatch.c @@ -38,8 +38,10 @@ JsonObject *dispatch(trg_client * client, JsonNode * req, int *status) serialized = trg_serialize(req); json_node_free(req); - - g_printf("=>(outgoing)=> %s\n", serialized); +#ifdef DEBUG + if (g_getenv("TRG_SHOW_OUTGOING") != NULL) + g_printf("=>(outgoing)=> %s\n", serialized); +#endif response = trg_http_perform(client, serialized); g_free(serialized); |