]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Scope Trace: Make it easier to trace through synchronous tasks
authorGeorge Joseph <gjoseph@digium.com>
Sun, 5 Jul 2020 23:51:04 +0000 (17:51 -0600)
committerKevin Harwell <kharwell@digium.com>
Tue, 7 Jul 2020 19:13:37 +0000 (14:13 -0500)
commitbb1af1b6fcdfac1b6dbaa24f74f0af14e30ba8b4
tree9acb3287af51252de60a1144f75b6cceafdba5b9
parent7c12303c4c81af9444749e5636c8d6f519f73ea7
Scope Trace: Make it easier to trace through synchronous tasks

Tracing through synchronous tasks was a little troublesome because
the new thread's stack counter reset to 0.  This change allows
a synchronous task to set its trace level to be the same as the
thread that pushed the task.  For now, the task's level has to be
passed in the task's data structure but a future enhancement to the
taskprocessor subsystem could automatically set the trace level
of the servant to be that of the caller.

This doesn't really make sense for async tasks because you never
know when they're going to run anyway.

Change-Id: Ib8049c0b815063a45d8c7b0cb4e30b7b87b1d825
include/asterisk/logger.h
main/logger.c