Page 1 of 1

Behaivior depends on LOG LEVEL

Posted: Fri Oct 20, 2017 8:51 pm
by atlascoder
I have strange situation and most likely i do something wrong, but I can't understand where to search.

So, I have code with many ESP_LOGD macros for logging when development using LOG LEVEL DEBUG. I work on my code and after finishing I switch LOG LEVEL to INFO. And then code becomes working different... I cannot say that it works wrong, there are no errors. But when it's DEBUG log level - i get more info, particularly, I get more hosts in arp table, nevertheless I perform the same `etharp_request` before. It's current issue, but I have faced such thing before.

Please, let me any direction to understand. :?
Thanks!

Re: Behaivior depends on LOG LEVEL

Posted: Fri Oct 20, 2017 9:39 pm
by atlascoder
I have found the issue.

More logging take more time for task and when I call to do something that works on another task it need to treat it and that task should take control. In my case, I have called `etharp_request` too many times without switch of execution. So I just have put vTaskDelay(1) to run give other task to complete my requests, and everything works well.

Probably, this would help someone.