From 12c08e31cbf5efe8d930ab9e1e0b0e818495e1f5 Mon Sep 17 00:00:00 2001 From: majormjr Date: Wed, 2 Nov 2016 20:40:11 -0400 Subject: [PATCH] removed logging to file --- src/main.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main.go b/src/main.go index 025ea45..85c980a 100644 --- a/src/main.go +++ b/src/main.go @@ -95,15 +95,6 @@ func main() { // Create mod pack dir if missing createModPackDir() - // Set logging output to file - logPath := filepath.Join(config.FactorioDir, config.LogFile) - logFile, err := os.OpenFile(logPath, os.O_APPEND|os.O_CREATE|os.O_RDWR, 0666) - if err != nil { - log.Fatalf("error opening log file: %v", err) - } - defer logFile.Close() - log.SetOutput(logFile) - // Initialize Factorio Server struct FactorioServ, err = initFactorio() if err != nil {