Skip to content

Commit

Permalink
Merge pull request #109 from jeffhostetler/gvfs-trace2-v5
Browse files Browse the repository at this point in the history
trace2: fixup: remove warning message when opening trace file
  • Loading branch information
jeffhostetler authored Jan 17, 2019
2 parents 03f31a3 + cefc83a commit ee44f7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions trace2/tr2_dst.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ 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) {
warning("could not open '%s' for tracing: %s",
trace, strerror(errno));
/*
* Silently eat the error and disable tracing on
* this destination.
*/
tr2_dst_trace_disable(dst);
} else {
dst->fd = fd;
Expand Down

0 comments on commit ee44f7e

Please sign in to comment.