1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-20 21:08:42 +03:00

Deleted unnecessary DateTimeFormatter declaration

This commit is contained in:
Skat 2020-11-24 13:00:08 +03:00 committed by GitHub
parent 2282cb89b1
commit 1637360952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1003,8 +1003,7 @@ public class ServerControl implements ApplicationListener{
private void logToFile(String text){
if(currentLogFile != null && currentLogFile.length() > maxLogLength){
String date = DateTimeFormatter.ofPattern("MM-dd-yyyy | HH:mm:ss").format(LocalDateTime.now());
currentLogFile.writeString("[End of log file. Date: " + date + "]\n", true);
currentLogFile.writeString("[End of log file. Date: " + dateTime.format(LocalDateTime.now()) + "]\n", true);
currentLogFile = null;
}