We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9012235 commit 1f3d945Copy full SHA for 1f3d945
setup.go
@@ -13,7 +13,7 @@ import (
13
// Setup the logs
14
func setupLogs() {
15
// You could set this to any `io.Writer` such as a file
16
- file, err := os.OpenFile("/var/log/splash-cli.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o666)
+ file, err := os.CreateTemp("", "splash-cli.log")
17
if err == nil {
18
logrus.SetOutput(file)
19
} else {
0 commit comments