refactor: 微调任务输出样式

This commit is contained in:
Argo Zhang 2019-07-20 11:25:02 +08:00
parent 18eda8eaee
commit 9e36b7f8e1
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ namespace Bootstrap.Admin.Controllers.Api
private void SendTaskLog(IScheduler sche, string name, IHubContext<SignalRHub> hub)
{
var t = sche.Triggers.First();
var result = $"{{\"name\": \"{name}\", \"msg\": \"{sche.LastRuntime}: Trigger({t.GetType().Name}) Run({t.LastResult}) NextRuntime: {sche.NextRuntime} Elapsed: {t.LastRunElapsedTime.Seconds}s\"}}";
var result = $"{{\"name\": \"{name}\", \"msg\": \"Trigger({t.GetType().Name}) LastRuntime: {sche.LastRuntime} Run({t.LastResult}) NextRuntime: {sche.NextRuntime} Elapsed: {t.LastRunElapsedTime.Seconds}s\"}}";
SignalRManager.SendTaskLog(hub.Clients.All, result).ConfigureAwait(false);
}
}