Export job files indented.
This commit is contained in:
parent
c6d0168d2f
commit
3d855020eb
@ -192,7 +192,7 @@ public class JobBoss : GlobalBase
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log($"Exporting Job {newJobFilePath}");
|
Log($"Exporting Job {newJobFilePath}");
|
||||||
string jobStr = JsonConvert.SerializeObject(job);
|
string jobStr = JsonConvert.SerializeObject(job, Formatting.Indented);
|
||||||
while(IsFileInUse(newJobFilePath))
|
while(IsFileInUse(newJobFilePath))
|
||||||
Thread.Sleep(10);
|
Thread.Sleep(10);
|
||||||
File.WriteAllText(newJobFilePath, jobStr);
|
File.WriteAllText(newJobFilePath, jobStr);
|
||||||
|
Loading…
Reference in New Issue
Block a user