mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-06 17:08:56 +07:00
Merge pull request #3563 from skykatik/patch-11
Deleted unnecessary DateTimeFormatter declaration
This commit is contained in:
commit
59387389a4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user