# HG changeset patch # User Michiel Broek # Date 1409663693 -7200 # Node ID de3dc781ba653cbf25a33e2fab7c9ddf20c45f46 # Parent 4c505414435cb9c293f32652a8d7a7b8166f02ae PROFILE PUTS command logging added. diff -r 4c505414435c -r de3dc781ba65 thermferm/server.c --- a/thermferm/server.c Tue Sep 02 15:07:34 2014 +0200 +++ b/thermferm/server.c Tue Sep 02 15:14:53 2014 +0200 @@ -914,6 +914,7 @@ if (strcmp(profile->uuid, param) == 0) { if (profile->steps) { + syslog(LOG_NOTICE, "PROFILE PUTS %s erased all old steps", profile->uuid); for (step = profile->steps; step; step = olds) { olds = step->next; free(step); @@ -921,6 +922,7 @@ profile->steps = NULL; } + j = 0; while (1) { memset((char *)&ibuf, 0, SS_BUFSIZE); fromlen = sizeof(peeraddr_in); @@ -960,6 +962,9 @@ (sscanf(rest, "%d", &irest) == 1) && (sscanf(targ, "%f", &ftarg) == 1)) { + j++; + syslog(LOG_NOTICE, "PROFILE PUTS %s add step %d: steptime=%d resttime=%d target=%.1f", + profile->uuid, j, istep, irest, ftarg); step = (prof_step *)malloc(sizeof(prof_step)); step->next = NULL; step->version = 1;