Commit ba072b9e authored by George Novikov's avatar George Novikov

ProcessLogger class.getName() -> class.getSimpleName()

parent a6937983
Pipeline #370 failed with stage
......@@ -83,7 +83,7 @@ public class ProcessLogger {
try {
HttpServletRequest request = getRequest();
String logRow = getLogRow(request, javaClass.getName(), processName, descriptionPrefix, description, fileName);
String logRow = getLogRow(request, javaClass.getSimpleName(), processName, descriptionPrefix, description, fileName);
File file = new File(fileName);
controlFileSize(file);
......@@ -155,9 +155,6 @@ public class ProcessLogger {
private boolean isOverwhelmed(File file){
int maxSizeMegabytes = logFileSize > 0 ? logFileSize : DEFAULT_FILE_SIZE;
long fileSizeMegabytes = file.length() / (1024*1024);
LOGGER.info("maxSizeMegabytes {}", maxSizeMegabytes);
LOGGER.info("fileSizeMegabytes {}", fileSizeMegabytes);
LOGGER.info("fileSizeMegabytes >= maxSizeMegabytes {}", fileSizeMegabytes >= maxSizeMegabytes);
return fileSizeMegabytes >= maxSizeMegabytes;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment