Skip to content

Commit cefc83a

Browse files
committed
trace2: fixup: remove warning message when opening trace file
1 parent 03f31a3 commit cefc83a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

trace2/tr2_dst.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ int tr2_dst_get_trace_fd(struct tr2_dst *dst)
3434
else if (is_absolute_path(trace)) {
3535
int fd = open(trace, O_WRONLY | O_APPEND | O_CREAT, 0666);
3636
if (fd == -1) {
37-
warning("could not open '%s' for tracing: %s",
38-
trace, strerror(errno));
37+
/*
38+
* Silently eat the error and disable tracing on
39+
* this destination.
40+
*/
3941
tr2_dst_trace_disable(dst);
4042
} else {
4143
dst->fd = fd;

0 commit comments

Comments
 (0)