fix: better logging behaviour
This commit is contained in:
parent
011c5a6102
commit
0530a350df
30 changed files with 343 additions and 176 deletions
src/models
|
@ -55,16 +55,16 @@ controller_debug(controller_t *controller)
|
|||
{
|
||||
if(controller == NULL)
|
||||
{
|
||||
LOG_DEBUG("controller is NULL\n");
|
||||
LOGGER_DEBUG("controller is NULL\n");
|
||||
return;
|
||||
}
|
||||
char uuid_str[37];
|
||||
uuid_unparse(controller->id, uuid_str);
|
||||
LOG_DEBUG("(1/5) %s @ %p\n", uuid_str, (void*)controller);
|
||||
LOG_DEBUG("(2/5) name: %s\n", controller->name);
|
||||
LOG_DEBUG("(3/5) command_port: %5d discovery_port: %5d\n", controller->command_port, controller->discovery_port);
|
||||
LOG_DEBUG("(4/5) relay count: %3d\n", controller->relay_count);
|
||||
LOG_DEBUG("(5/5) relays @ %p:\n", (void*)controller->relays);
|
||||
LOGGER_DEBUG("(1/5) %s @ %p\n", uuid_str, (void*)controller);
|
||||
LOGGER_DEBUG("(2/5) name: %s\n", controller->name);
|
||||
LOGGER_DEBUG("(3/5) command_port: %5d discovery_port: %5d\n", controller->command_port, controller->discovery_port);
|
||||
LOGGER_DEBUG("(4/5) relay count: %3d\n", controller->relay_count);
|
||||
LOGGER_DEBUG("(5/5) relays @ %p:\n", (void*)controller->relays);
|
||||
for(int i = 0; i < controller->relay_count; ++i)
|
||||
{
|
||||
relay_debug(controller->relays[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue