diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -39,7 +39,9 @@ func getLogNames() ([]string, error) { } var logNames []string for _, log := range logs { - logNames = append(logNames, strings.Split(log.Name(), ".")[0]) + if log.Name() != "deleted.log.json" { + logNames = append(logNames, strings.Split(log.Name(), ".")[0]) + } } return logNames, nil } @@ -342,7 +344,7 @@ func main() { uploads = storage.NewStorage(path.Join(gomfRoot, "upload")) var err error - deletedLog, err = os.OpenFile("deleted.log.json", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0600) + deletedLog, err = os.OpenFile(path.Join(gomfRoot, "log", "deleted.log.json"), os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0600) if err != nil { panic(err) } |