couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r954240 - /couchdb/trunk/src/couchdb/couch_log.erl
Date Sun, 13 Jun 2010 15:10:00 GMT
Author: kocolosk
Date: Sun Jun 13 15:09:59 2010
New Revision: 954240

URL: http://svn.apache.org/viewvc?rev=954240&view=rev
Log:
hack for log requests during make check, when logger is not running

Modified:
    couchdb/trunk/src/couchdb/couch_log.erl

Modified: couchdb/trunk/src/couchdb/couch_log.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_log.erl?rev=954240&r1=954239&r2=954240&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_log.erl (original)
+++ couchdb/trunk/src/couchdb/couch_log.erl Sun Jun 13 15:09:59 2010
@@ -81,7 +81,11 @@ get_level() ->
     level_atom(get_level_integer()).
 
 get_level_integer() ->
-    ets:lookup_element(?MODULE, level, 2).
+    try
+        ets:lookup_element(?MODULE, level, 2)
+    catch error:badarg ->
+        ?LEVEL_ERROR
+    end.
 
 set_level_integer(Int) ->
     gen_event:call(error_logger, couch_log, {set_level_integer, Int}).



Mime
View raw message