mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 05:04:27 +08:00
add more debug logs
This commit is contained in:
parent
5980beacd1
commit
4d001f0d27
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue