I think a macro is not necessary
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/4997b786 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/4997b786 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/4997b786 Branch: refs/heads/console_log Commit: 4997b7861f68113e3b3e05888b1771d8d0cc87fa Parents: b32ee45 Author: Jason Smith (work) <[email protected]> Authored: Sat Feb 2 14:31:09 2013 +0000 Committer: Jason Smith (work) <[email protected]> Committed: Sat Feb 2 14:31:09 2013 +0000 ---------------------------------------------------------------------- src/couchdb/couch_db.hrl | 2 -- src/couchdb/couch_os_process.erl | 2 +- 2 files changed, 1 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/4997b786/src/couchdb/couch_db.hrl ---------------------------------------------------------------------- diff --git a/src/couchdb/couch_db.hrl b/src/couchdb/couch_db.hrl index ee40c52..42f10ac 100644 --- a/src/couchdb/couch_db.hrl +++ b/src/couchdb/couch_db.hrl @@ -59,8 +59,6 @@ -define(LOG_ERROR(Format, Args), couch_log:error(Format, Args)). --define(LOG_VIEW(Message), couch_log:view(Message)). - % Tree::term() is really a tree(), but we don't want to require R13B04 yet -type branch() :: {Key::term(), Value::term(), Tree::term()}. -type path() :: {Start::pos_integer(), branch()}. http://git-wip-us.apache.org/repos/asf/couchdb/blob/4997b786/src/couchdb/couch_os_process.erl ---------------------------------------------------------------------- diff --git a/src/couchdb/couch_os_process.erl b/src/couchdb/couch_os_process.erl index f4dfc39..dafdc9e 100644 --- a/src/couchdb/couch_os_process.erl +++ b/src/couchdb/couch_os_process.erl @@ -142,7 +142,7 @@ readjson(OsProc) when is_record(OsProc, os_proc) -> case ?JSON_DECODE(Line) of [<<"log">>, Msg] when is_binary(Msg) -> % we got a message to log. Log it and continue - ?LOG_VIEW(Msg), + couch_log:view(Msg), readjson(OsProc); [<<"error">>, Id, Reason] -> throw({error, {couch_util:to_existing_atom(Id),Reason}});
