From 3bda2b4e55f7ff8ac8bba30e0d0c606ab11ffc7e Mon Sep 17 00:00:00 2001 From: Marc Sauter Date: Tue, 4 Feb 2014 23:04:24 +0100 Subject: connection handling --- debugging.go | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 debugging.go (limited to 'debugging.go') diff --git a/debugging.go b/debugging.go deleted file mode 100644 index 709c20d..0000000 --- a/debugging.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// File contains debugging functionality -package ldap - -import ( - "github.com/marcsauter/asn1-ber" - "log" -) - -/* - debbuging 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 { - // TODO: DEBUG prefix - log.Printf(format, args...) - } -} - -func (debug debugging) PrintPacket(packet *ber.Packet) { - if debug { - ber.PrintPacket(packet) - } -} -- cgit v1.2.3