diff --git a/apps/dgiot_api/src/rest/dgiot_router.erl b/apps/dgiot_api/src/rest/dgiot_router.erl index 67b9e67e73..23f77ef885 100644 --- a/apps/dgiot_api/src/rest/dgiot_router.erl +++ b/apps/dgiot_api/src/rest/dgiot_router.erl @@ -183,7 +183,6 @@ init(Req0, {swagger, Name} = Opts) -> %% install init(Req0, install) -> - io:format("Req0 install ~p",[Req0]), Product = dgiot_req:binding(<<"Product">>, Req0), #{peer := {IpPeer, _}} = Req0, Req = @@ -193,7 +192,6 @@ init(Req0, install) -> {ok, Name} = dgiot_data:lookup({Port, httpd}), case catch (dgiot_install:start(#{product => Product, webserver => Name})) of {Type, Reason} when Type == 'EXIT'; Type == error -> - ?LOG(info,"Reason ~p ", [Reason]), dgiot_req:reply(500, ?HEADER#{ <<"content-type">> => <<"application/json; charset=utf-8">> }, jsx:encode(#{error => list_to_binary(io_lib:format("~p", [Reason]))}), Req0); diff --git a/apps/dgiot_api/src/utils/dgiot_install.erl b/apps/dgiot_api/src/utils/dgiot_install.erl index c1ddf978e4..12b1ad440d 100644 --- a/apps/dgiot_api/src/utils/dgiot_install.erl +++ b/apps/dgiot_api/src/utils/dgiot_install.erl @@ -320,9 +320,7 @@ generate_users(Result) -> %% 权限ε…₯εΊ“ generate_rule(Result) -> - ?LOG(info,"Result ~p",[Result]), #{name := ServerName} = proplists:get_value(<<"webname">>, Result, #{name => dgiot_rest}), - ?LOG(info,"ServerName ~p",[ServerName]), Rules = case dgiot_swagger:read(ServerName, #{}) of {ok, Schema} ->