summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Leeds <randall@apache.org>2012-03-23 06:04:08 -0700
committerRandall Leeds <randall@apache.org>2012-03-23 06:07:03 -0700
commitba8fa86890087650a02a8ebaaea2537468999472 (patch)
tree82a479da3c41938c661e53244ecc8c91085de390
parentaf9e1c883ca4accb209cccc7ac9d26efa4daf1fd (diff)
downloadcouchdb-ba8fa86890087650a02a8ebaaea2537468999472.tar.gz
lower couch_file error logging on open to DEBUG
The reason is that, while possibly informative when something does need debugging, in the common case where the caller means to create the file if it doesn't exist this may not be a genuine error. Perhaps better would be if there were a way to actually request that the file be created without requesting it be overwritten.
-rw-r--r--src/couchdb/couch_file.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_file.erl b/src/couchdb/couch_file.erl
index 91799330f..191225c21 100644
--- a/src/couchdb/couch_file.erl
+++ b/src/couchdb/couch_file.erl
@@ -58,7 +58,7 @@ open(Filepath, Options) ->
{trap_exit, true} -> receive {'EXIT', Pid, _} -> ok end;
{trap_exit, false} -> ok
end,
- ?LOG_ERROR("Error opening file ~s: ~s",
+ ?LOG_DEBUG("Could not open file ~s: ~s",
[Filepath, file:format_error(Reason)]),
Error
end;