diff --git a/apps/efka/src/efka_micro_service.erl b/apps/efka/src/efka_micro_service.erl index 1d69d55..71affba 100644 --- a/apps/efka/src/efka_micro_service.erl +++ b/apps/efka/src/efka_micro_service.erl @@ -145,7 +145,8 @@ handle_call(start_service, _From, State = #state{running_status = ?STATUS_STOPPE end; %% 停止服务, 主动停止的时候会改变服务配置的status字段 -handle_call(stop_service, _From, State = #state{running_status = ?STATUS_STOPPED}) -> +handle_call(stop_service, _From, State = #state{running_status = ?STATUS_STOPPED, port = Port, os_pid = OSPid}) -> + lager:debug("stop service port: ~p, os_pid: ~p", [Port, OSPid]), {reply, {error, <<"service not running">>}, State}; handle_call(stop_service, _From, State = #state{running_status = ?STATUS_RUNNING, port = Port, os_pid = OSPid, service = Service = #micro_service{service_id = ServiceId}}) when is_port(Port) ->