couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rand...@apache.org
Subject [1/2] git commit: lower couch_file error logging on open to DEBUG
Date Fri, 23 Mar 2012 13:06:51 GMT
Updated Branches:
  refs/heads/1.1.x 5e2e0bb5a -> 47491b7f0


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/47491b7f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/47491b7f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/47491b7f

Branch: refs/heads/1.1.x
Commit: 47491b7f01a2c7f0259bc966684edae5fb3f60f6
Parents: 5c8940c
Author: Randall Leeds <randall@apache.org>
Authored: Fri Mar 23 06:04:08 2012 -0700
Committer: Randall Leeds <randall@apache.org>
Committed: Fri Mar 23 06:04:08 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/47491b7f/src/couchdb/couch_file.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_file.erl b/src/couchdb/couch_file.erl
index 0585413..700fddb 100644
--- a/src/couchdb/couch_file.erl
+++ b/src/couchdb/couch_file.erl
@@ -53,7 +53,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;


Mime
View raw message