mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-11-30 03:07:40 +08:00
fix: io:format(Profile) error
This commit is contained in:
parent
00b6d6d098
commit
ed68f25b87
@ -33,9 +33,8 @@
|
||||
|
||||
%% 注册通道类型
|
||||
-channel_type(#{
|
||||
|
||||
cType => ?TYPE,
|
||||
type => ?BRIDGE_CHL,
|
||||
type => ?PROTOCOL_CHL,
|
||||
title => #{
|
||||
zh => <<"MQTT资源通道"/utf8>>
|
||||
},
|
||||
|
@ -99,7 +99,6 @@ inject(Profile) ->
|
||||
%% list the profile/lib dir to get all apps
|
||||
list_apps(LibDir) ->
|
||||
Apps = filelib:wildcard("*", LibDir),
|
||||
io:format(standard_error, "~p", [Profile]),
|
||||
lists:foldl(fun(App, Acc) -> [App || is_app(LibDir, App)] ++ Acc end, [], Apps).
|
||||
|
||||
is_app(_LibDir, "." ++ _) -> false; %% ignore hidden dir
|
||||
|
Loading…
Reference in New Issue
Block a user