format message
This commit is contained in:
parent
58bbf45338
commit
6df2404bfd
@ -133,7 +133,7 @@ handle_cast({detection, HostUUID, Name, Metric},
|
|||||||
|
|
||||||
case length(Warnings) > 0 of
|
case length(Warnings) > 0 of
|
||||||
true ->
|
true ->
|
||||||
Subject = iolist_to_binary([<<"主机: "/utf8>>, Name, lists:join(<<"|">>, lists:reverse(Warnings))]),
|
Subject = iolist_to_binary([<<"主机: "/utf8>>, Name, <<" || ">>, lists:join(<<"|">>, lists:reverse(Warnings))]),
|
||||||
Body = format_warn(Subject, Users, PriKey),
|
Body = format_warn(Subject, Users, PriKey),
|
||||||
case catch do_post(Url, Body) of
|
case catch do_post(Url, Body) of
|
||||||
{ok, Resp} ->
|
{ok, Resp} ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user