From b878b5263453c9263780ffbab4ad86ff0af71063 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Thu, 10 Mar 2011 11:50:31 -0500 Subject: Use twig for logging Conflicts: apps/couch/include/couch_db.hrl apps/couch/src/couch_server_sup.erl rebar.config rel/reltool.config --- apps/couch/include/couch_db.hrl | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'apps/couch') diff --git a/apps/couch/include/couch_db.hrl b/apps/couch/include/couch_db.hrl index 1b46786c..e8cbfff3 100644 --- a/apps/couch/include/couch_db.hrl +++ b/apps/couch/include/couch_db.hrl @@ -25,21 +25,9 @@ -define(DEFAULT_ATTACHMENT_CONTENT_TYPE, <<"application/octet-stream">>). --define(LOG_DEBUG(Format, Args), - case couch_log:debug_on() of - true -> - couch_log:debug(Format, Args); - false -> ok - end). - --define(LOG_INFO(Format, Args), - case couch_log:info_on() of - true -> - couch_log:info(Format, Args); - false -> ok - end). - --define(LOG_ERROR(Format, Args), couch_log:error(Format, Args)). +-define(LOG_DEBUG(Format, Args), twig:log(debug, Format, Args)). +-define(LOG_INFO(Format, Args), twig:log(notice, Format, Args)). +-define(LOG_ERROR(Format, Args), twig:log(error, Format, Args)). -record(rev_info, { -- cgit v1.2.3