Skip to content

Commit

Permalink
Better log
Browse files Browse the repository at this point in the history
  • Loading branch information
singalen committed Jan 28, 2018
1 parent d6e39a0 commit 67750a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logrotee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ int execCompression(const string& command) {
if (child > 0) {
lastChild = child;
} else if (child < 0) {
fprintf(stderr, "Error %d in fork(%s)\n", errno, strerror(errno));
fprintf(stderr, "Error %d in fork(%s): %s\n", errno, command.c_str(), strerror(errno));
} else {
int status = system(command.c_str());
// if (status == -1) {
Expand Down

0 comments on commit 67750a6

Please sign in to comment.