From 7856b1202d6bfd8bded396b87692ea7113fedbed Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 13 Jun 2018 22:26:56 +0800 Subject: [PATCH] *: fix wrong format type --- models/mirror.go | 2 +- pkg/auth/ldap/ldap.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/mirror.go b/models/mirror.go index a2d3d6298..da6b7f2b6 100644 --- a/models/mirror.go +++ b/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()) diff --git a/pkg/auth/ldap/ldap.go b/pkg/auth/ldap/ldap.go index 5b9764607..5c9342e91 100644 --- a/pkg/auth/ldap/ldap.go +++ b/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)