format message

This commit is contained in:
anlicheng 2024-09-02 17:15:52 +08:00
parent 58bbf45338
commit 6df2404bfd

View File

@ -133,7 +133,7 @@ handle_cast({detection, HostUUID, Name, Metric},
case length(Warnings) > 0 of
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),
case catch do_post(Url, Body) of
{ok, Resp} ->