fac_verify ook logfile zipped laten opvragen voor als hij te groot is geworden
svn path=/Website/branches/v2018.1/; revision=39255
This commit is contained in:
@@ -769,14 +769,26 @@ if (typeof __DoLog == "function")
|
||||
checker("Logfile writable",
|
||||
function ()
|
||||
{
|
||||
var logfilename = "log_" + customerId + ".html.log";
|
||||
var filePath = Server.MapPath(rooturl + "/") + "/temp";
|
||||
|
||||
var result = { result: resultcodes.ok,
|
||||
message: " <a href='fac_StreamFile.asp?logger=0' target='_new'>View</a> the logfile"
|
||||
message: filePath + "/" + logfilename
|
||||
+ "<br><a href='fac_StreamFile.asp?logger=0' target='_new'>View</a> the logfile"
|
||||
+ " <a href='fac_StreamFile.asp?logger=0&zipfile=1' target='_new'>zipped</a>"
|
||||
};
|
||||
if (!__DoLog("Fac_verify test {0}".format(toDateTimeString(new Date())), "#0ff" ))
|
||||
{
|
||||
result.result = resultcodes.error;
|
||||
result.message += "<br>" + safe.html(__LogError);
|
||||
}
|
||||
if (fso.FileExists(filePath + "/" + logfilename))
|
||||
{
|
||||
var f = fso.getFile(filePath + "/" + logfilename);
|
||||
var dt = new Date(f.DateLastModified);
|
||||
var sz = f.Size;
|
||||
result.info = "{0} ({1}kB)".format(toDateTimeString(dt), Math.round(sz/1024));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user