mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-24 07:30:57 +03:00
Less warning
messages when first running it.
They are actually `info` messages
This commit is contained in:
parent
59b99d2206
commit
667701be02
@ -376,7 +376,12 @@ func (s *TagScanner) loadTracks(filePaths []string) (model.MediaFiles, error) {
|
||||
func (s *TagScanner) withAdminUser(ctx context.Context) context.Context {
|
||||
u, err := s.ds.User(ctx).FindFirstAdmin()
|
||||
if err != nil {
|
||||
log.Warn(ctx, "No admin user found!", err)
|
||||
c, err := s.ds.User(ctx).CountAll()
|
||||
if c == 0 && err == nil {
|
||||
log.Debug(ctx, "Scanner: No admin user yet!", err)
|
||||
} else {
|
||||
log.Error(ctx, "Scanner: No admin user found!", err)
|
||||
}
|
||||
u = &model.User{}
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ func initialSetup(ds model.DataStore) {
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
log.Warn("Running initial setup")
|
||||
log.Info("Running initial setup")
|
||||
if err = createJWTSecret(ds); err != nil {
|
||||
return err
|
||||
}
|
||||
@ -68,7 +68,7 @@ func createJWTSecret(ds model.DataStore) error {
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
log.Warn("Creating JWT secret, used for encrypting UI sessions")
|
||||
log.Info("Creating new JWT secret, used for encrypting UI sessions")
|
||||
err = properties.Put(consts.JWTSecretKey, uuid.NewString())
|
||||
if err != nil {
|
||||
log.Error("Could not save JWT secret in DB", err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user