summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.go b/main.go
index 5caa02b..da9a480 100644
--- a/main.go
+++ b/main.go
@@ -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)
}