Logging from another task/thread

cmumford
Posts: 4
Joined: Fri Dec 11, 2020 4:29 pm

Logging from another task/thread

Postby cmumford » Mon Feb 22, 2021 1:14 am

Hi:

I just noticed that all of my logging (i.e. ESP_LOGE, etc.) from all tasks after the first task do not show up in the monitor. I figured this would be a FAQ, but I can't find any mention of this. Is this support?

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

Re: Logging from another task/thread

Postby ESP_Sprite » Mon Feb 22, 2021 2:16 am

That is odd... you should be able to log from any task. Do you have some code that shows the issue? Also, what esp-idf version are you using?

cmumford
Posts: 4
Joined: Fri Dec 11, 2020 4:29 pm

Re: Logging from another task/thread

Postby cmumford » Tue Feb 23, 2021 1:23 am

I'm on ESP-IDF master/2bfdd036b2dbd07004c8e4f2ffc87c728819b737. I'm doing USB host stuff, so needed new stuff in 4.3.

My code is at https://github.com/BigMumf/display-keyboard. Looking more closely I'm not sure it's dropping logging from other tasks, but it is definitely dropping log messages - of all log levels.

My default log verbosity is INFO and my logging is going to UART0 and not CDC.

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 119 guests