Procházet zdrojové kódy

add more debug logs

(cherry picked from commit 4d001f0d2709fcc55ae66e2591a0bd079207a61d)
abhishek9686 před 1 rokem
rodič
revize
73b56a6322
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      auth/auth.go

+ 1 - 0
auth/auth.go

@@ -257,6 +257,7 @@ func addUser(email string) error {
 		Password: newPass,
 	}
 	if !hasSuperAdmin { // must be first attempt, create a superadmin
+		logger.Log(0, "creating superadmin")
 		if err = logic.CreateSuperAdmin(&newUser); err != nil {
 			slog.Error("error creating super admin from user", "email", email, "error", err)
 		} else {