use /data/logs for daily logs

This commit is contained in:
Joerg Lehmann 2022-12-16 17:57:52 +00:00
parent 3f3e6da696
commit 65fd72e1ea
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ func WriteStringToFile(s string, deveui string) {
// Also write to individual files
datestr := time.Now().Format("2006-01")
individual_file := "/home/appuser/wo-bisch-lorahandler/logs/" + deveui + "-" + datestr + ".log"
individual_file := "/data/logs/" + deveui + "-" + datestr + ".log"
fi, err := os.OpenFile(individual_file, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0644)
if err != nil {