2023-02-20 22:22:58 -06:00
|
|
|
package dnssecsocket
|
|
|
|
|
|
|
|
import (
|
2023-03-28 08:54:18 -05:00
|
|
|
witlog "git.wit.org/wit/gui/log"
|
2023-02-20 22:22:58 -06:00
|
|
|
)
|
|
|
|
|
2023-03-28 08:54:18 -05:00
|
|
|
// various debugging flags
|
|
|
|
var logNow bool = true // useful for active development
|
|
|
|
var logError bool = true
|
|
|
|
var logWarn bool = false
|
|
|
|
var logInfo bool = false
|
|
|
|
var logVerbose bool = false
|
2023-02-20 22:22:58 -06:00
|
|
|
|
2023-03-28 08:54:18 -05:00
|
|
|
var SPEW witlog.Spewt
|
2023-02-20 22:22:58 -06:00
|
|
|
|
2023-03-28 08:54:18 -05:00
|
|
|
// var log interface{}
|
2023-02-20 22:22:58 -06:00
|
|
|
|
2023-03-28 08:54:18 -05:00
|
|
|
func log(a ...any) {
|
|
|
|
witlog.Where = "wit/gui"
|
|
|
|
witlog.Log(a...)
|
|
|
|
}
|
2023-02-20 22:22:58 -06:00
|
|
|
|
|
|
|
func sleep(a ...any) {
|
2023-03-28 08:54:18 -05:00
|
|
|
witlog.Sleep(a...)
|
2023-02-20 22:22:58 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
func exit(a ...any) {
|
2023-03-28 08:54:18 -05:00
|
|
|
log(logError, "got to log() exit")
|
|
|
|
witlog.Exit(a...)
|
2023-02-20 22:22:58 -06:00
|
|
|
}
|