mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-08 04:04:53 +02:00
removed logging to file
This commit is contained in:
parent
7d3c8128ce
commit
12c08e31cb
@ -95,15 +95,6 @@ func main() {
|
|||||||
// Create mod pack dir if missing
|
// Create mod pack dir if missing
|
||||||
createModPackDir()
|
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
|
// Initialize Factorio Server struct
|
||||||
FactorioServ, err = initFactorio()
|
FactorioServ, err = initFactorio()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user