Skip to content

Commit

Permalink
fix Data Export (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
pietro-lopes authored Feb 21, 2024
1 parent 4a09cae commit bf682e2
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,21 @@ private void exportData0() throws Exception {
appendLine(logStringBuilder, calendar, line);
}

logStringBuilder.setLength(logStringBuilder.length() - 1);
addString("errors.log", logStringBuilder.toString());
if (logStringBuilder.length() > 0) {
logStringBuilder.setLength(logStringBuilder.length() - 1);
addString("errors.log", logStringBuilder.toString());
}

logStringBuilder.setLength(0);

for (var line : ConsoleJS.SERVER.warnings) {
appendLine(logStringBuilder, calendar, line);
}

logStringBuilder.setLength(logStringBuilder.length() - 1);
addString("warnings.log", logStringBuilder.toString());
if (logStringBuilder.length() > 0) {
logStringBuilder.setLength(logStringBuilder.length() - 1);
addString("warnings.log", logStringBuilder.toString());
}

var modArr = new JsonArray();

Expand Down

0 comments on commit bf682e2

Please sign in to comment.