diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-26 00:21:52 -0600 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-26 00:21:52 -0600 |
commit | 861a20f4642004abad344eae049bedda25f3c887 (patch) | |
tree | c3744f642675a0588697e106d2e4c60c1984810c /modules/base/conf.go | |
parent | 3684e70dc4508dd87f8879ffc516d22e5e46e5c5 (diff) | |
parent | 0da329462ec4f9164a258ca4d2b1552a6166827e (diff) |
Merge branch 'dev' of github.com:gogits/gogs into dev
Diffstat (limited to 'modules/base/conf.go')
-rw-r--r-- | modules/base/conf.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go index 57245045..04c12457 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") |