diff --git a/internal/commands/index_test.go b/internal/commands/index_test.go index 788833fcc..ecbd87780 100644 --- a/internal/commands/index_test.go +++ b/internal/commands/index_test.go @@ -48,7 +48,7 @@ func TestIndexCommand(t *testing.T) { if l != "" { assert.NotContains(t, l, "error") assert.NotContains(t, l, "warning") - assert.Contains(t, l, "migrate") + assert.Contains(t, l, "index") } else { t.Fatal("log output missing") } diff --git a/internal/config/about.go b/internal/config/about.go index 5eff3b37a..404fb1eac 100644 --- a/internal/config/about.go +++ b/internal/config/about.go @@ -24,7 +24,6 @@ Additional information can be found in our Developer Guide: */ package config -var SignUpInfo = "Support Our Mission" var SignUpURL = "https://www.photoprism.app/membership" var MsgSponsor = "Become a member today, support our mission and enjoy our member benefits! 💎" var MsgSignUp = "Visit " + SignUpURL + " to learn more." diff --git a/internal/entity/auth_user.go b/internal/entity/auth_user.go index 782928cc3..afd46e7bf 100644 --- a/internal/entity/auth_user.go +++ b/internal/entity/auth_user.go @@ -841,7 +841,7 @@ func (m *User) Validate() (err error) { // Validate user role. if acl.ValidRoles[m.UserRole] == "" { - return fmt.Errorf("unsupported user role") + return fmt.Errorf("user role %s is invalid", clean.LogQuote(m.UserRole)) } // Check if the username is unique. diff --git a/internal/entity/entity_tables.go b/internal/entity/entity_tables.go index ee7245f78..f668cf960 100644 --- a/internal/entity/entity_tables.go +++ b/internal/entity/entity_tables.go @@ -108,7 +108,7 @@ func (list Tables) Migrate(db *gorm.DB, opt migrate.Options) { } }() - log.Infof("migrate: running database migrations") + log.Debugf("migrate: running database migrations") // Run pre migrations, if any. if err := migrate.Run(db, opt.Pre()); err != nil {