mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
dmeventd: log all commands with CMD: prefix
For easier grep of all processed command - add CMD: prefix to them. Use >>> for entring command processing and <<< when command is processed.
This commit is contained in:
parent
d60794c3a3
commit
11a084cf42
@ -1574,7 +1574,7 @@ static void _process_request(struct dm_event_fifos *fifos)
|
||||
return;
|
||||
|
||||
cmd = msg.cmd;
|
||||
DEBUGLOG("%s (0x%x) processing...", decode_cmd(cmd), cmd);
|
||||
DEBUGLOG(">>> CMD:%s (0x%x) processing...", decode_cmd(cmd), cmd);
|
||||
|
||||
die = (msg.cmd == DM_EVENT_CMD_DIE) ? 1 : 0;
|
||||
|
||||
@ -1587,7 +1587,7 @@ static void _process_request(struct dm_event_fifos *fifos)
|
||||
|
||||
dm_free(msg.data);
|
||||
|
||||
DEBUGLOG("%s (0x%x) completed (=%d).", decode_cmd(cmd), cmd, msg.cmd);
|
||||
DEBUGLOG("<<< CMD:%s (0x%x) completed (=%d).", decode_cmd(cmd), cmd, msg.cmd);
|
||||
|
||||
if (die) {
|
||||
if (unlink(DMEVENTD_PIDFILE))
|
||||
|
Loading…
x
Reference in New Issue
Block a user