feat(api): doc folders curd implemention

This commit is contained in:
neo-f
2023-03-23 21:27:28 +08:00
parent 28edda5c7a
commit 6851fe95a0
17 changed files with 539 additions and 155 deletions

View File

@@ -2,7 +2,6 @@ package logger
import (
"io"
"os"
"octopus"
"octopus/internal/config"
@@ -17,11 +16,11 @@ func Setup() {
zerolog.ErrorStackMarshaler = pkgerrors.MarshalStack
writers := []io.Writer{}
if config.Get().IsLocal {
writers = append(writers, zerolog.NewConsoleWriter())
} else {
writers = append(writers, os.Stderr)
}
// if config.Get().IsLocal {
writers = append(writers, zerolog.NewConsoleWriter())
// } else {
// writers = append(writers, os.Stderr)
// }
if dsn := cfg.Sentry.DSN; dsn != "" {
sentryWriter, err := NewSentryWriter(
cfg.Sentry.DSN,