Skip to content

Commit

Permalink
Revert "trace2: fixup: remove warning message when opening trace file"
Browse files Browse the repository at this point in the history
This reverts commit cefc83a.
  • Loading branch information
jeffhostetler committed Jan 31, 2019
1 parent ee44f7e commit 4487587
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions trace2/tr2_dst.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ int tr2_dst_get_trace_fd(struct tr2_dst *dst)
else if (is_absolute_path(trace)) {
int fd = open(trace, O_WRONLY | O_APPEND | O_CREAT, 0666);
if (fd == -1) {
/*
* Silently eat the error and disable tracing on
* this destination.
*/
warning("could not open '%s' for tracing: %s",
trace, strerror(errno));
tr2_dst_trace_disable(dst);
} else {
dst->fd = fd;
Expand Down

0 comments on commit 4487587

Please sign in to comment.