Commits

Anonymous committed 5f95c0d

via Paul Miniero: more hot code upgrade bugfixes

Comments (0)

Files changed (2)

src/webmachine_logger.erl

 log_access(#wm_log_data{}=D) ->
     gen_server:call(?MODULE, {log_access, D}).
 
-handle_call(get_modules, _From, State) ->
-    {reply, [?MODULE], State};
 handle_call({log_access, LogData}, _From, State) ->
     NewState = maybe_rotate(State, now()),
     Msg = format_req(LogData),
 handle_cast({refresh, Time}, State) ->
     {noreply, maybe_rotate(State, Time)}.
 
+handle_info({_Label, {From, MRef}, get_modules}, State) ->
+    From ! {MRef, [?MODULE]},
+    {noreply, State};
 handle_info(_Info, State) ->
-    {ok, State}.
+    {noreply, State}.
 
 terminate(_Reason, _State) ->
     ok.

src/webmachine_perf_logger.erl

     {noreply, maybe_rotate(State, Time)}.
 
 handle_info(_Info, State) ->
-    {ok, State}.
+    {noreply, State}.
 
 terminate(_Reason, _State) ->
     ok.