You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ra...@apache.org on 2012/03/23 14:11:58 UTC
git commit: lower couch_file error logging on open to DEBUG
Updated Branches:
refs/heads/1.2.x af9e1c883 -> ba8fa8689
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.
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/ba8fa868
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/ba8fa868
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/ba8fa868
Branch: refs/heads/1.2.x
Commit: ba8fa86890087650a02a8ebaaea2537468999472
Parents: af9e1c8
Author: Randall Leeds <ra...@apache.org>
Authored: Fri Mar 23 06:04:08 2012 -0700
Committer: Randall Leeds <ra...@apache.org>
Committed: Fri Mar 23 06:07:03 2012 -0700
----------------------------------------------------------------------
src/couchdb/couch_file.erl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/ba8fa868/src/couchdb/couch_file.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_file.erl b/src/couchdb/couch_file.erl
index 9179933..191225c 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;