logging to file applied to cron application

This commit is contained in:
Bogdan Pilyugin 2023-05-08 19:55:51 +02:00
parent 2d9f3d5bfe
commit d4da408541
2 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit 918ac98b3589a8462553cbe70d89e8adf744a24b
Subproject commit e65b1e3075f9ef87899eb73b073a35f36cc52cd0

View File

@ -58,7 +58,7 @@ void custom_cron_job_callback(cron_job *job)
time_t now;
time(&now);
ESP_LOGI(TAG, "Execute scheduler '%s' action %d under object %d at time %d", name, act, obj, (unsigned int )now);
LogFile("cron.log", "executed sheduler");
LogFile("cron.log", "Executed sheduler with action %u under object %u", act, obj);
custom_cron_execute(obj, act);
return;
}
@ -111,6 +111,7 @@ static void ExecuteLastAction()
if(act != -1)
{
ESP_LOGW(TAG, "Execute last action %d with object %d", act, obj);
LogFile("cron.log", "Execute last action %d under object %d", act, obj);
custom_cron_execute(obj, act);
}