use consistent naming convention for System Update log file

This commit is contained in:
Shaun Walker 2022-02-24 11:11:15 -05:00
parent 15fdba060c
commit 82fef82c4f

View File

@ -201,7 +201,12 @@ namespace Oqtane.Updater
log += "Upgrade Process Ended: " + DateTime.UtcNow.ToString() + Environment.NewLine;
// create upgrade log file
File.WriteAllText(Path.Combine(deployfolder, "Oqtane.Framework.Upgrade." + DateTime.UtcNow.ToString("yyyyMMddHHmm") + ".log"), log);
string logfile = Path.Combine(deployfolder, Path.GetFileNameWithoutExtension(packagename) + ".log");
if (File.Exists(logfile))
{
File.Delete(logfile);
}
File.WriteAllText(logfile, log);
}
else
{