Skip to content

Commit 6d21c2b

Browse files
committed
Set log level to warning for missing orgs/teams
1 parent 8865932 commit 6d21c2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/auth/source/ldap/source_group_sync.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func (source *Source) SyncLdapGroupsToTeams(user *user_model.User, ldapTeamAdd m
2323
org, err = models.GetOrgByName(orgName)
2424
if err != nil {
2525
// organization must be created before LDAP group sync
26-
log.Debug("LDAP group sync: Could not find organisation %s: %v", orgName, err)
26+
log.Warn("LDAP group sync: Could not find organisation %s: %v", orgName, err)
2727
continue
2828
}
2929
orgCache[orgName] = org
@@ -42,7 +42,7 @@ func (source *Source) SyncLdapGroupsToTeams(user *user_model.User, ldapTeamAdd m
4242
team, err = org.GetTeam(teamName)
4343
if err != nil {
4444
// team must be created before LDAP group sync
45-
log.Debug("LDAP group sync: Could not find team %s: %v", teamName, err)
45+
log.Warn("LDAP group sync: Could not find team %s: %v", teamName, err)
4646
continue
4747
}
4848
teamCache[orgName+teamName] = team
@@ -71,7 +71,7 @@ func removeMappedMemberships(user *user_model.User, ldapTeamRemove map[string][]
7171
org, err = models.GetOrgByName(orgName)
7272
if err != nil {
7373
// organization must be created before LDAP group sync
74-
log.Debug("LDAP group sync: Could not find organisation %s: %v", orgName, err)
74+
log.Warn("LDAP group sync: Could not find organisation %s: %v", orgName, err)
7575
continue
7676
}
7777
orgCache[orgName] = org
@@ -82,7 +82,7 @@ func removeMappedMemberships(user *user_model.User, ldapTeamRemove map[string][]
8282
team, err = org.GetTeam(teamName)
8383
if err != nil {
8484
// team must must be created before LDAP group sync
85-
log.Debug("LDAP group sync: Could not find team %s: %v", teamName, err)
85+
log.Warn("LDAP group sync: Could not find team %s: %v", teamName, err)
8686
continue
8787
}
8888
}

0 commit comments

Comments
 (0)