Logs: Update log levels and messages

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2023-10-07 16:00:23 +02:00
parent ede4b3b897
commit 0f321b10bc
4 changed files with 3 additions and 4 deletions

View File

@@ -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")
}

View File

@@ -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."

View File

@@ -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.

View File

@@ -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 {