From d4da40854147275eb6e7d44bd1bf8cbd0750dace Mon Sep 17 00:00:00 2001 From: bogdan Date: Mon, 8 May 2023 19:55:51 +0200 Subject: [PATCH] logging to file applied to cron application --- components/webguiapp | 2 +- main/src/CronTimers.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/webguiapp b/components/webguiapp index 918ac98..e65b1e3 160000 --- a/components/webguiapp +++ b/components/webguiapp @@ -1 +1 @@ -Subproject commit 918ac98b3589a8462553cbe70d89e8adf744a24b +Subproject commit e65b1e3075f9ef87899eb73b073a35f36cc52cd0 diff --git a/main/src/CronTimers.c b/main/src/CronTimers.c index 090ff26..e8045fa 100644 --- a/main/src/CronTimers.c +++ b/main/src/CronTimers.c @@ -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); }