summaryrefslogtreecommitdiffstats
path: root/modules/base/conf.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-04-26 14:14:48 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-04-26 14:25:51 +0800
commit1b734501bdbec3a0ff04458944683eae0990d9ae (patch)
tree66d3f57d0277b0f68f2071ce80ec4072a7f0ce1e /modules/base/conf.go
parent83578cff65b6aac78b52c17c39a8a61cf4a17c2c (diff)
downloadgitea-1b734501bdbec3a0ff04458944683eae0990d9ae.tar.gz
gitea-1b734501bdbec3a0ff04458944683eae0990d9ae.zip
bug fixed
Diffstat (limited to 'modules/base/conf.go')
-rw-r--r--modules/base/conf.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go
index 5724504503..04c1245774 100644
--- a/modules/base/conf.go
+++ b/modules/base/conf.go
@@ -316,7 +316,7 @@ func NewConfigContext() {
// load LDAP authentication configuration if present
LdapAuth = Cfg.MustBool("security", "LDAP_AUTH", false)
if LdapAuth {
- log.Debug("LDAP AUTHENTICATION activated")
+ qlog.Debug("LDAP AUTHENTICATION activated")
nbsrc := 0
for _, v := range Cfg.GetSectionList() {
if matched, _ := regexp.MatchString("(?i)^LDAPSOURCE.*", v); matched {
@@ -329,15 +329,15 @@ func NewConfigContext() {
ldapmsadsaformat := Cfg.MustValue(v, "MSADSAFORMAT", "%s")
ldap.AddSource(ldapname, ldaphost, ldapport, ldapbasedn, ldapattribute, ldapfilter, ldapmsadsaformat)
nbsrc += 1
- log.Debug("%s added as LDAP source", ldapname)
+ qlog.Debug("%s added as LDAP source", ldapname)
}
}
if nbsrc == 0 {
- log.Debug("No valide LDAP found, LDAP AUTHENTICATION NOT activated")
+ qlog.Debug("No valide LDAP found, LDAP AUTHENTICATION NOT activated")
LdapAuth = false
}
} else {
- log.Debug("LDAP AUTHENTICATION NOT activated")
+ qlog.Debug("LDAP AUTHENTICATION NOT activated")
}
PictureService = Cfg.MustValue("picture", "SERVICE")