Migrating to our ldap fork (#12149)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5fe5077578
Коммит
5cf578f486
24
vendor/github.com/mattermost/ldap/debug.go
сгенерированный
поставляемый
Обычный файл
24
vendor/github.com/mattermost/ldap/debug.go
сгенерированный
поставляемый
Обычный файл
@@ -0,0 +1,24 @@
|
||||
package ldap
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"gopkg.in/asn1-ber.v1"
|
||||
)
|
||||
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
Ссылка в новой задаче
Block a user