test
This commit is contained in:
parent
a3d74eb632
commit
35ff6d096f
2
.env
2
.env
@ -1,2 +0,0 @@
|
|||||||
DISCORD_URL=https://discord.com/api/webhooks/1235943329854783530/lgAd6On2gtLPCAZ0HABXCJvVFut7zTL0eGwYs7akkSQ7LEZA2hGtqKYag5vXMdBXJv6L
|
|
||||||
NTFY_URL=https://ntfy.sh/__KleinTest
|
|
||||||
@ -9,7 +9,7 @@ import (
|
|||||||
var logFile *os.File
|
var logFile *os.File
|
||||||
|
|
||||||
func OpenLogFile(BasePath string) {
|
func OpenLogFile(BasePath string) {
|
||||||
logFile, _ = os.OpenFile(path.Join(BasePath, "../../logs/active-responses.log"), os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
|
logFile, _ = os.OpenFile(path.Join(BasePath, "../../logs/active-responses.log"), os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0777)
|
||||||
_, err := logFile.WriteString(
|
_, err := logFile.WriteString(
|
||||||
"\n#######################################\n## START ##" +
|
"\n#######################################\n## START ##" +
|
||||||
"\n" + time.Now().String() +
|
"\n" + time.Now().String() +
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user