Fix logspam for JobExceptions

This commit is contained in:
Jordan Brown
2018-08-19 13:53:50 -04:00
parent 479a646060
commit c64fee50a9
+1 -1
View File
@@ -94,8 +94,8 @@ namespace Tgstation.Server.Host.Core
}
catch (Exception e)
{
logger.LogDebug("Job {0} exited with error! Exception: {1}", job.Id, e);
job.ExceptionDetails = e is JobException ? e.Message : e.ToString();
logger.LogDebug("Job {0} exited with error! Exception: {1}", job.Id, job.ExceptionDetails);
}
job.StoppedAt = DateTimeOffset.Now;
await databaseContext.Save(default).ConfigureAwait(false);