qbtrade/pkg/strategy/tri/debug.go

17 lines
236 B
Go
Raw Normal View History

2024-06-27 14:42:38 +00:00
//go:build debug
// +build debug
package tri
const debugMode = true
func debug(msg string, args ...any) {
log.Infof(msg, args...)
}
func debugAssert(expr bool, msg string, args ...any) {
if !expr {
log.Errorf(msg, args...)
}
}