diff options
author | Unknwon <u@gogs.io> | 2015-11-26 14:04:58 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-26 14:04:58 -0500 |
commit | aaa3f1b2b9de437386185670bcc135202f1d8099 (patch) | |
tree | 48790eed891ea75cf237f29d141eb0932f7bc3fd /modules/ldap/debug.go | |
parent | 2f28a0310b0f391dd74bb3a2ab0ae06379a4fb1a (diff) |
Use better LDAP lib and should fix #1139
Diffstat (limited to 'modules/ldap/debug.go')
-rw-r--r-- | modules/ldap/debug.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/modules/ldap/debug.go b/modules/ldap/debug.go deleted file mode 100644 index 67856fe7..00000000 --- a/modules/ldap/debug.go +++ /dev/null @@ -1,24 +0,0 @@ -package ldap - -import ( - "log" - - "github.com/gogits/gogs/modules/asn1-ber" -) - -// debugging type -// - has a Printf method to write the debug output -type debugging bool - -// write debug output -func (debug debugging) Printf(format string, args ...interface{}) { - if debug { - log.Printf(format, args...) - } -} - -func (debug debugging) PrintPacket(packet *ber.Packet) { - if debug { - ber.PrintPacket(packet) - } -} |