debug messages refactored

This commit is contained in:
Bogdan Pilyugin 2023-05-07 17:50:53 +02:00
parent e61503b922
commit 58f0d62c6c
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ function dbgtmr(){PostData("tmrdbg=1", "application.html", false, false, false);
<div id="timer"></div> <div id="timer"></div>
</div> </div>
<button type="button" class ='btn' id='bt2' onclick="addtm()">Add timer</button> <button type="button" class ='btn' id='bt2' onclick="addtm()">Add timer</button>
<button type="button" class ='btn' id='bt2' onclick="dbgtmr()">Debug</button> <button type="button" class ='btn' id='bt2' onclick="dbgtmr()">Last scheduled exec</button>
</form> </form>
</div> </div>
</div> </div>

View File

@ -56,7 +56,7 @@ void custom_cron_job_callback(cron_job *job)
//here call all timers jobs depends on object and action //here call all timers jobs depends on object and action
time_t now; time_t now;
time(&now); time(&now);
ESP_LOGI(TAG, "Executed timer '%s' action %d under object %d at time %d", name, act, obj, (unsigned int )now); ESP_LOGI(TAG, "Execute scheduler '%s' action %d under object %d at time %d", name, act, obj, (unsigned int )now);
custom_cron_execute(obj, act); custom_cron_execute(obj, act);
return; return;
} }
@ -108,7 +108,7 @@ static void ExecuteLastAction()
if(act != -1) if(act != -1)
{ {
ESP_LOGW(TAG, "Needed execute lost action %d with object %d", act, obj); ESP_LOGW(TAG, "Execute last action %d with object %d", act, obj);
custom_cron_execute(obj, act); custom_cron_execute(obj, act);
} }