]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Tue, 7 Jul 2020 19:09:50 +0000 (14:09 -0500)
commitaf595e918e19d0ee7e310e86327b443d3380aaaa
tree3dab388a0abb4fab6cbb81b77fbcd8e13a81185c
parente34da79c60d1ef0a62004fb7a44b4d940780cb71
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