Skip to content

Commit 1f3d945

Browse files
committed
chore: change logfile
1 parent 9012235 commit 1f3d945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
// Setup the logs
1414
func setupLogs() {
1515
// 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)
16+
file, err := os.CreateTemp("", "splash-cli.log")
1717
if err == nil {
1818
logrus.SetOutput(file)
1919
} else {

0 commit comments

Comments
 (0)