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
This commit is contained in:
Wim Taymans 2024-10-22 09:59:15 +02:00
parent 0dfd6d997f
commit 82b9f76b0d

View file

@ -1345,7 +1345,7 @@ static inline void debug_xrun_target(struct pw_impl_node *driver,
enum spa_log_level level = SPA_LOG_LEVEL_DEBUG; enum spa_log_level level = SPA_LOG_LEVEL_DEBUG;
if ((suppressed = spa_ratelimit_test(&driver->rt.rate_limit, nsec)) >= 0) 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 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)", " 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; struct pw_node_target *t;
if ((suppressed = spa_ratelimit_test(&driver->rt.rate_limit, nsec)) >= 0) 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)", pw_log(level, "(%s-%u) graph xrun %s (%d suppressed)",
driver->name, driver->info.id, str_status(old_status), 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; int suppressed;
if ((suppressed = spa_ratelimit_test(&driver->rt.rate_limit, nsec)) >= 0) 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)", pw_log(level, "(%s-%u) sync timeout, going to RUNNING (%d suppressed)",
driver->name, driver->info.id, suppressed); driver->name, driver->info.id, suppressed);