From a0e680b3352b8fbfebbe4fdc755ad1c8380283a2 Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Wed, 25 Nov 2009 15:48:15 +0200 Subject: [PATCH] ladishd: improve logs before executing each new command, put a separator in the log file put a separator so its impact is clearly visible --- daemon/cqueue.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/cqueue.c b/daemon/cqueue.c index f9f245ec..f1f0519b 100644 --- a/daemon/cqueue.c +++ b/daemon/cqueue.c @@ -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);