ladishd: improve logs

before executing each new command, put a separator in the log file
put a separator so its impact is clearly visible
This commit is contained in:
Nedko Arnaudov 2009-11-25 15:48:15 +02:00
parent 90e81444ee
commit a0e680b335
1 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,11 @@ loop:
ASSERT(cmd_ptr->run != NULL);
ASSERT(cmd_ptr->state == LADISH_COMMAND_STATE_PENDING || cmd_ptr->state == LADISH_COMMAND_STATE_WAITING);
if (cmd_ptr->state == LADISH_COMMAND_STATE_PENDING)
{ /* if this is a new command, put a separator so its impact is clearly visible in the log */
log_info("-------");
}
if (!cmd_ptr->run(cmd_ptr->context))
{
ladish_cqueue_clear(queue_ptr);