Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ausward/Cloudflare_DNS_Tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Ward committed Jun 10, 2024
2 parents ec245ba + 9a18ae5 commit c80926f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ func main() {
var account_id string = ""


logPath := os.Getenv("LOGPATH")
if logPath == "" {
logPath = "./log.txt"
}
logFile, err := os.OpenFile(logPath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
log.Fatal(err)
}
defer logFile.Close()
log.SetOutput(logFile)
// logPath := os.Getenv("LOGPATH")
// if logPath == "" {
// logPath = "./log.txt"
// }
// logFile, err := os.OpenFile(logPath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
// if err != nil {
// log.Fatal(err)
// }
// defer logFile.Close()
// log.SetOutput(logFile)



Expand Down Expand Up @@ -243,6 +243,6 @@ func main() {
log.Println("payload:", payload, "\nresults:", result)

}
logFile.Close()
// logFile.Close()

}

0 comments on commit c80926f

Please sign in to comment.