fix: better logging behaviour
This commit is contained in:
parent
011c5a6102
commit
0530a350df
30 changed files with 343 additions and 176 deletions
src/models
|
@ -62,12 +62,12 @@ relay_debug(relay_t *relay)
|
|||
{
|
||||
if(relay == NULL)
|
||||
{
|
||||
LOG_DEBUG("relay is NULL\n");
|
||||
LOGGER_DEBUG("relay is NULL\n");
|
||||
return;
|
||||
}
|
||||
LOG_DEBUG("(1/3) %d @ %p\n", relay->number, (void*)relay);
|
||||
LOG_DEBUG("(2/3) name: %s\n", relay->name);
|
||||
LOG_DEBUG("(3/3) schedules @ %p:\n", (void*)relay->schedules);
|
||||
LOGGER_DEBUG("(1/3) %d @ %p\n", relay->number, (void*)relay);
|
||||
LOGGER_DEBUG("(2/3) name: %s\n", relay->name);
|
||||
LOGGER_DEBUG("(3/3) schedules @ %p:\n", (void*)relay->schedules);
|
||||
for(int i = 0; i < 7; ++i)
|
||||
{
|
||||
schedule_debug(relay->schedules[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue