public void Build_Finish(EngineState s) { if (s.DisableLogger) { return; } buildDict.TryRemove(s.BuildId, out DB_BuildInfo dbBuild); if (dbBuild == null) { throw new KeyNotFoundException($"Unable to find DB_BuildInfo Instance, id = {s.BuildId}"); } if (s.DelayedLogging) { DB.InsertAll(BuildLogPool); BuildLogPool.Clear(); } dbBuild.EndTime = DateTime.UtcNow; DB.Update(dbBuild); System_Write(new LogInfo(LogState.Info, $"Build [{dbBuild.Name}] finished")); }
public static Log Update(Log myItem) { return(LogDB.Update(myItem)); }