diff options
author | clsr <clsr@clsr.net> | 2019-11-24 03:03:32 +0100 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2019-11-24 03:03:32 +0100 |
commit | 8c91b41872df9f1d0eb991c0b0d8826f4346cba4 (patch) | |
tree | 51f5f93a389f3f12d3275e3d9dc6ff49ac84aabc | |
parent | 08ad3ae7d038bd51b2ce42b864fc56d03f14e2e6 (diff) | |
download | gomf-modpanel-master.tar.gz gomf-modpanel-master.zip |
-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) } |