Behaivior depends on LOG LEVEL

atlascoder
Posts: 51
Joined: Wed Aug 30, 2017 12:36 pm

Behaivior depends on LOG LEVEL

Postby atlascoder » Fri Oct 20, 2017 8:51 pm

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!

atlascoder
Posts: 51
Joined: Wed Aug 30, 2017 12:36 pm

Re: Behaivior depends on LOG LEVEL

Postby atlascoder » Fri Oct 20, 2017 9:39 pm

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.

Who is online

Users browsing this forum: W3C [Validator] and 102 guests