mirror of
https://github.com/soypat/lneto.git
synced 2026-08-17 21:24:04 +00:00
continue adding Handler logic; remove unused TxQueue tests
This commit is contained in:
@@ -9,6 +9,10 @@ import (
|
||||
|
||||
const HeapAllocDebugging = false
|
||||
|
||||
func LogEnabled(l *slog.Logger, lvl slog.Level) bool {
|
||||
return l != nil && l.Handler().Enabled(context.Background(), lvl)
|
||||
}
|
||||
|
||||
// LogAttrs is a helper function that is used by all package loggers and that
|
||||
// can be switched out with the `debugheaplog` build tag for a non-allocating
|
||||
// logger that prints out when heap allocations occur.
|
||||
|
||||
Reference in New Issue
Block a user