summaryrefslogtreecommitdiff
path: root/src/lib.h
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2014-07-14 14:56:01 (GMT)
committerNirbheek Chauhan <nirbheek@centricular.com>2014-07-14 14:56:01 (GMT)
commitfeee319e6b6cb4774cce72d90d1a60f5ecc9bbda (patch)
tree3145d7f145b1a064c2367a4ea3d55c443c68a38f /src/lib.h
parent4ee70eec51b4b536567d570f5545894c9286e00b (diff)
downloadsoup-transcoding-proxy-feee319e6b6cb4774cce72d90d1a60f5ecc9bbda.zip
soup-transcoding-proxy-feee319e6b6cb4774cce72d90d1a60f5ecc9bbda.tar.gz
debug: Make the server less noisy
This is very spammy when we get content-length encoding PUT streams
Diffstat (limited to 'src/lib.h')
-rw-r--r--src/lib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.h b/src/lib.h
index c2b5f32..9bbd790 100644
--- a/src/lib.h
+++ b/src/lib.h
@@ -64,6 +64,12 @@ struct _TranscodeClientCtx {
TranscodeServerCtx *server_ctx;
};
+#ifdef ENCODE_DEBUG
+#define stp_print_status(...) g_print(__VA_ARGS__)
+#else
+#define stp_print_status(...) do {} while (0)
+#endif
+
void stp_cleanup_transcode_server_ctx (TranscodeServerCtx *ctx);
void stp_cleanup_transcode_client_ctx (TranscodeClientCtx *ctx);