Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use DEB instead of DEBUG macro to avoid conflicts with compilation wi…

…th debbuging info
  • Loading branch information...
commit 6ce72cb27ab36fbfda61d6d58433a4e5857c2c4f 1 parent 6315121
nniclausse authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  inc/log.hrl
  2. +4 −4 src/mdb_logger.erl
View
2  inc/log.hrl
@@ -15,4 +15,4 @@
-define(WARN, 4). % A significant event that may require attention has occurred.
-define(NOTICE,5). % An event that does not affect system operation has occurred.
-define(INFO, 6). % An normal operation has occurred.
--define(DEBUG, 7). % Debugging info
+-define(DEB, 7). % Debugging info
View
8 src/mdb_logger.erl
@@ -63,7 +63,7 @@ change_loglevel(Level) ->
%% Default to DEBUG level
log(Mesg, Args) ->
- log(Mesg, Args, ?DEBUG).
+ log(Mesg, Args, ?DEB).
%% log with given level
log(Mesg, Args, Level) ->
@@ -92,7 +92,7 @@ info(Mesg, Args) ->
gen_event:notify(?MODULE, {log, Mesg, Args, ?INFO}).
debug(Mesg, Args) ->
- gen_event:notify(?MODULE, {log, Mesg, Args, ?DEBUG}).
+ gen_event:notify(?MODULE, {log, Mesg, Args, ?DEB}).
%%%----------------------------------------------------------------------
%%% Callback functions from gen_event
@@ -178,5 +178,5 @@ lvl2numeric(err) -> ?ERR;
lvl2numeric(warn) -> ?WARN;
lvl2numeric(notice) -> ?NOTICE;
lvl2numeric(info) -> ?INFO;
-lvl2numeric(debug) -> ?DEBUG;
-lvl2numeric(_) -> ?DEBUG.
+lvl2numeric(debug) -> ?DEB;
+lvl2numeric(_) -> ?DEB.
Please sign in to comment.
Something went wrong with that request. Please try again.