From afd817a0b607d732a7bfd2b31cef8a5b8cf9ab09 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 24 Jan 2009 01:36:43 +0100 Subject: rate limit a warning --- src/pulsecore/asyncq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pulsecore/asyncq.c') diff --git a/src/pulsecore/asyncq.c b/src/pulsecore/asyncq.c index c9815054..67f661fe 100644 --- a/src/pulsecore/asyncq.c +++ b/src/pulsecore/asyncq.c @@ -206,7 +206,8 @@ void pa_asyncq_post(pa_asyncq*l, void *p) { /* OK, we couldn't push anything in the queue. So let's queue it * locally and push it later */ - pa_log("q overrun, queuing locally"); + if (pa_log_ratelimit()) + pa_log_warn("q overrun, queuing locally"); if (!(q = pa_flist_pop(PA_STATIC_FLIST_GET(localq)))) q = pa_xnew(struct localq, 1); -- cgit