Return a proper response for server initialization
Project: http://git-wip-us.apache.org/repos/asf/couchdb-twig/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-twig/commit/cdb23a66 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-twig/tree/cdb23a66 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-twig/diff/cdb23a66 Branch: refs/heads/import Commit: cdb23a66f7b6c403bb60b164e09b19555d114009 Parents: d40c614 Author: Adam Kocoloski <[email protected]> Authored: Tue Mar 8 14:05:44 2011 -0500 Committer: Adam Kocoloski <[email protected]> Committed: Tue Mar 8 14:05:44 2011 -0500 ---------------------------------------------------------------------- src/twig_monitor.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-twig/blob/cdb23a66/src/twig_monitor.erl ---------------------------------------------------------------------- diff --git a/src/twig_monitor.erl b/src/twig_monitor.erl index 5a4f86c..81b04bd 100644 --- a/src/twig_monitor.erl +++ b/src/twig_monitor.erl @@ -23,7 +23,8 @@ start_link() -> gen_server:start_link(?MODULE, [], []). init(_) -> - gen_event:add_sup_handler(error_logger, twig_event_handler, []). + ok = gen_event:add_sup_handler(error_logger, twig_event_handler, []), + {ok, nil}. handle_call(_Call, _From, State) -> {reply, ignored, State}.
