mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-12-04 05:09:09 +08:00
rm log
This commit is contained in:
parent
1aefc33bf9
commit
db4154ffc4
@ -375,7 +375,6 @@
|
|||||||
"Rule"
|
"Rule"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"/provider": {
|
"/provider": {
|
||||||
"get": {
|
"get": {
|
||||||
|
@ -135,7 +135,7 @@ save(Product) ->
|
|||||||
Product1 = format_product(Product),
|
Product1 = format_product(Product),
|
||||||
#{<<"productId">> := ProductId} = Product1,
|
#{<<"productId">> := ProductId} = Product1,
|
||||||
dgiot_data:insert(?MODULE, ProductId, Product1),
|
dgiot_data:insert(?MODULE, ProductId, Product1),
|
||||||
?LOG(info,"update product ~p", [Product1]),
|
?LOG(debug,"product ~p", [Product1]),
|
||||||
{ok, Product1}.
|
{ok, Product1}.
|
||||||
|
|
||||||
local(ProductId) ->
|
local(ProductId) ->
|
||||||
@ -226,7 +226,7 @@ load_device(#{<<"productId">> := ProductId} = Product, [Device | Devices]) ->
|
|||||||
{ok, Pid} ->
|
{ok, Pid} ->
|
||||||
?LOG(debug,"ProductId:~p, DevAddr:~p -> ~p", [ProductId, Device, Pid]);
|
?LOG(debug,"ProductId:~p, DevAddr:~p -> ~p", [ProductId, Device, Pid]);
|
||||||
{error, Reason} ->
|
{error, Reason} ->
|
||||||
?LOG(error,"ProductId:~p, DevAddr:~p -> ~p", [ProductId, Device, Reason])
|
?LOG(debug,"ProductId:~p, DevAddr:~p -> ~p", [ProductId, Device, Reason])
|
||||||
end,
|
end,
|
||||||
load_device(Product, Devices).
|
load_device(Product, Devices).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user