From 82b9f76b0d9aa944e32c5e0fa9e81e019a4eeac3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 22 Oct 2024 09:59:15 +0200 Subject: [PATCH] impl-node: lower the xrun debug level Make the xrun reporting as info. This can generate a lot of logging if the error is persistent and the errors are also reported in pw-top etc. Fixes #4361 --- src/pipewire/impl-node.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pipewire/impl-node.c b/src/pipewire/impl-node.c index 820f406f6..04ce326ee 100644 --- a/src/pipewire/impl-node.c +++ b/src/pipewire/impl-node.c @@ -1345,7 +1345,7 @@ static inline void debug_xrun_target(struct pw_impl_node *driver, enum spa_log_level level = SPA_LOG_LEVEL_DEBUG; if ((suppressed = spa_ratelimit_test(&driver->rt.rate_limit, nsec)) >= 0) - level = SPA_LOG_LEVEL_WARN; + level = SPA_LOG_LEVEL_INFO; pw_log(level, "(%s-%u) xrun state:%p pending:%d/%d s:%"PRIu64" a:%"PRIu64" f:%"PRIu64 " waiting:%"PRIu64" process:%"PRIu64" status:%s (%d suppressed)", @@ -1366,7 +1366,7 @@ static inline void debug_xrun_graph(struct pw_impl_node *driver, uint64_t nsec, struct pw_node_target *t; if ((suppressed = spa_ratelimit_test(&driver->rt.rate_limit, nsec)) >= 0) - level = SPA_LOG_LEVEL_WARN; + level = SPA_LOG_LEVEL_INFO; pw_log(level, "(%s-%u) graph xrun %s (%d suppressed)", driver->name, driver->info.id, str_status(old_status), suppressed); @@ -1400,7 +1400,7 @@ static void debug_sync_timeout(struct pw_impl_node *driver, uint64_t nsec) int suppressed; if ((suppressed = spa_ratelimit_test(&driver->rt.rate_limit, nsec)) >= 0) - level = SPA_LOG_LEVEL_WARN; + level = SPA_LOG_LEVEL_INFO; pw_log(level, "(%s-%u) sync timeout, going to RUNNING (%d suppressed)", driver->name, driver->info.id, suppressed);