Browse Source

*: fix wrong format type

Unknwon 6 years ago
parent
commit
7856b1202d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      models/mirror.go
  2. 1 1
      pkg/auth/ldap/ldap.go

+ 1 - 1
models/mirror.go

@@ -362,7 +362,7 @@ func MirrorUpdate() {
 func SyncMirrors() {
 	// Start listening on new sync requests.
 	for repoID := range MirrorQueue.Queue() {
-		log.Trace("SyncMirrors [repo_id: %d]", repoID)
+		log.Trace("SyncMirrors [repo_id: %s]", repoID)
 		MirrorQueue.Remove(repoID)
 
 		m, err := GetMirrorByRepoID(com.StrTo(repoID).MustInt64())

+ 1 - 1
pkg/auth/ldap/ldap.go

@@ -178,7 +178,7 @@ func bindUser(l *ldap.Conn, userDN, passwd string) error {
 func (ls *Source) SearchEntry(name, passwd string, directBind bool) (string, string, string, string, bool, bool) {
 	// See https://tools.ietf.org/search/rfc4513#section-5.1.2
 	if len(passwd) == 0 {
-		log.Trace("authentication failed for '%s' with empty password")
+		log.Trace("authentication failed for '%s' with empty password", name)
 		return "", "", "", "", false, false
 	}
 	l, err := dial(ls)