This commit is contained in:
Gokcehan committed 2018-05-20 20:30:41 +03:00
1 parent 03b9fe0c5e
commit a85e0da9b0
12 files changed
+435 -428

No files matched your search

+3 -3
View File
@@ -16,12 +16,12 @@ var (
)
func serve() {
logFile, err := os.Create(gServerLogPath)
f, err := os.Create(gServerLogPath)
if err != nil {
panic(err)
}
defer logFile.Close()
log.SetOutput(logFile)
defer f.Close()
log.SetOutput(f)
log.Print("hi!")