mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-27 01:48:09 -07:00
add download count number while scrape
* remove storage configuration print * change test for pg storage
This commit is contained in:
+2
-2
@@ -39,12 +39,12 @@ func (r *Server) Run(configFilePath string) error {
|
||||
log.Info().Msg("metrics disabled because of empty address")
|
||||
}
|
||||
|
||||
log.Info().Str("name", cfg.Storage.Name).Msg("starting storage")
|
||||
log.Debug().Str("name", cfg.Storage.Name).Object("config", cfg.Storage.Config).Msg("starting storage")
|
||||
r.storage, err = storage.NewStorage(cfg.Storage.Name, cfg.Storage.Config)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create storage: %w", err)
|
||||
}
|
||||
log.Info().Object("config", r.storage).Msg("started storage")
|
||||
log.Info().Str("name", cfg.Storage.Name).Msg("started storage")
|
||||
|
||||
preHooks, err := middleware.NewHooks(cfg.PreHooks, r.storage)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user