summaryrefslogtreecommitdiff
path: root/src/lib.c
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.c
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.c')
-rw-r--r--src/lib.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib.c b/src/lib.c
index 01bae81..b22e82f 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -48,11 +48,11 @@ stp_on_gst_bus_message (GstBus *bus,
g_hash_table_remove (ctx->parent_ctx_table, ctx->path);
break;
case GST_MESSAGE_EOS:
- g_print ("End of file\n");
+ g_debug ("End of file\n");
g_hash_table_remove (ctx->parent_ctx_table, ctx->path);
break;
default:
- //g_print ("%s\n", gst_message_type_get_name (msg->type));
+ //stp_print_status ("%s\n", gst_message_type_get_name (msg->type));
break;
}
@@ -65,7 +65,7 @@ stp_on_gst_bus_message (GstBus *bus,
void
stp_cleanup_transcode_server_ctx (TranscodeServerCtx *ctx)
{
- g_print (">>> Doing server cleanup\n");
+ g_debug (">>> Doing server cleanup\n");
/* Disconnect and free the context for each client */
g_list_foreach (ctx->clients, (GFunc)stp_disconnect_cleanup_client, NULL);
@@ -86,7 +86,7 @@ pad_blocked_cleanup_cb (GstPad *srcpad,
GstElement *tee;
GstElement *sinkbin = GST_ELEMENT (gst_element_get_parent (ctx->appsink));
- g_print (".");
+ stp_print_status (".");
/* Remove the probe */
gst_pad_remove_probe (srcpad, GST_PAD_PROBE_INFO_ID (info));
@@ -101,7 +101,7 @@ pad_blocked_cleanup_cb (GstPad *srcpad,
gst_object_unref (sinkbin);
g_mutex_clear (&ctx->can_write_chunk);
- g_print (" Client cleanup done!\n");
+ stp_print_status (" Client cleanup done!\n");
return GST_PAD_PROBE_OK;
}
@@ -116,7 +116,7 @@ stp_cleanup_transcode_client_ctx (TranscodeClientCtx *ctx)
TranscodeServerCtx *server_ctx = ctx->server_ctx;
GstElement *sinkbin = GST_ELEMENT (gst_element_get_parent (ctx->appsink));
- g_print (">>> Doing client cleanup.");
+ stp_print_status (">>> Doing client cleanup.");
g_source_remove (ctx->timeout_handler_id);
@@ -129,7 +129,7 @@ stp_cleanup_transcode_client_ctx (TranscodeClientCtx *ctx)
(GstPadProbeCallback) pad_blocked_cleanup_cb,
ctx, (GDestroyNotify)g_free);
gst_object_unref (sinkbin);
- g_print (".");
+ stp_print_status (".");
}
/* When shutting down a client due to a server shutdown,
@@ -138,7 +138,7 @@ stp_cleanup_transcode_client_ctx (TranscodeClientCtx *ctx)
static void
stp_disconnect_cleanup_client (TranscodeClientCtx *ctx)
{
- g_print (">>> Disconnecting client on server shutdown\n");
+ stp_print_status (">>> Disconnecting client on server shutdown\n");
/* FIXME: This isn't actually setting the status for client
* connections, and clients are just left hanging */