feat: add get all torrents api

This commit is contained in:
Simon Ding
2024-07-27 09:26:51 +08:00
parent 51fc5c3c74
commit b2a092c64e
7 changed files with 124 additions and 83 deletions

View File

@@ -41,9 +41,9 @@ func SetLogLevel(l string) {
case "info":
atom.SetLevel(zap.InfoLevel)
Info("set log level to info")
case "warn", "warnning":
case "warn", "warning":
atom.SetLevel(zap.WarnLevel)
Warn("set log level to warnning")
Warn("set log level to warning")
case "error":
atom.SetLevel(zap.ErrorLevel)
Error("set log level to error")