Skip to content

Commit

Permalink
i3-dump-log: make log message a little more clear
Browse files Browse the repository at this point in the history
This came up when trying to debug an issue.
  • Loading branch information
stapelberg committed Feb 12, 2019
1 parent e2d6117 commit 039b4c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion i3-dump-log/main.c
Expand Up @@ -155,7 +155,7 @@ int main(int argc, char *argv[]) {
exit(1);
}
if (root_atom_contents("I3_CONFIG_PATH", conn, screen) != NULL) {
fprintf(stderr, "i3-dump-log: ERROR: i3 is running, but SHM logging is not enabled. Enabling SHM log until cancelled\n\n");
fprintf(stderr, "i3-dump-log: i3 is running, but SHM logging is not enabled. Enabling SHM log now while i3-dump-log is running\n\n");
ipcfd = ipc_connect(NULL);
const char *enablecmd = "debuglog on; shmlog 5242880";
if (ipc_send_message(ipcfd, strlen(enablecmd),
Expand Down
4 changes: 2 additions & 2 deletions testcases/t/207-shmlog.t
Expand Up @@ -31,7 +31,7 @@ run [ 'i3-dump-log' ],
'>', \$stdout,
'2>', \$stderr;

like($stderr, qr#^i3-dump-log: ERROR: i3 is running, but SHM logging is not enabled\.#,
like($stderr, qr#^i3-dump-log: i3 is running, but SHM logging is not enabled\.#,
'shm logging not enabled');

################################################################################
Expand Down Expand Up @@ -73,7 +73,7 @@ run [ 'i3-dump-log' ],
'>', \$stdout,
'2>', \$stderr;

like($stderr, qr#^i3-dump-log: ERROR: i3 is running, but SHM logging is not enabled\.#,
like($stderr, qr#^i3-dump-log: i3 is running, but SHM logging is not enabled\.#,
'shm logging not enabled');

done_testing;

0 comments on commit 039b4c7

Please sign in to comment.