removed logging to file

This commit is contained in:
majormjr 2016-11-02 20:40:11 -04:00
parent 7d3c8128ce
commit 12c08e31cb

View File

@ -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 {