Skip to content
Snippets Groups Projects
Commit 33e1e3d9 authored by Nicklas Persia Tufteland's avatar Nicklas Persia Tufteland
Browse files

Fix: Fix bug where chaosGame is not stored.

parent 0b36c665
No related branches found
No related tags found
1 merge request!41final delivery
Pipeline #288990 passed
package edu.ntnu.idatt2003.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
......@@ -25,7 +23,6 @@ public class LoggerUtil {
try {
File logDirectory = new File("logs");
if (!logDirectory.exists() && !logDirectory.mkdirs()) {
ObjectInputStream ois = new ObjectInputStream(new FileInputStream(logDirectory));
System.err.println("Failed to create log directory.");
}
FileHandler fileHandler = new FileHandler("logs/application.log", false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment