Changeset a0e680b3352b8fbfebbe4fdc755ad1c8380283a2

Show
Ignore:
Timestamp:
11/25/09 15:48:15 (3 years ago)
Author:
Nedko Arnaudov <nedko@…>
Children:
91ae4857e131389f5c34d792ce87c55b6a003c13
Parents:
90e81444eecc7269951f629199c22969bbb53c55
git-committer:
Nedko Arnaudov <nedko@arnaudov.name> / 2009-11-25T15:48:15Z+0200
Message:

ladishd: improve logs

before executing each new command, put a separator in the log file
put a separator so its impact is clearly visible

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • daemon/cqueue.c

    r4d061b7 ra0e680b  
    5050  ASSERT(cmd_ptr->state == LADISH_COMMAND_STATE_PENDING || cmd_ptr->state == LADISH_COMMAND_STATE_WAITING); 
    5151 
     52  if (cmd_ptr->state == LADISH_COMMAND_STATE_PENDING) 
     53  { /* if this is a new command, put a separator so its impact is clearly visible in the log */ 
     54    log_info("-------"); 
     55  } 
     56 
    5257  if (!cmd_ptr->run(cmd_ptr->context)) 
    5358  {