From 145582a37bbf92f4b7aad537d0475f8de2bb9aee Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Wed, 30 Apr 2025 17:34:42 +0800 Subject: [PATCH] fix --- apps/efka/src/efka_micro_service.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) ->