routing: define subsystem constant

This commit is contained in:
Joost Jager committed 2019-12-11 00:17:04 +01:00
1 parent 16ca36985e
commit f289dbd826
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -11,9 +11,11 @@ import (
// it.
var log btclog.Logger
const Subsystem = "CRTR"
// The default amount of logging is none.
func init() {
UseLogger(build.NewSubLogger("CRTR", nil))
UseLogger(build.NewSubLogger(Subsystem, nil))
}
// DisableLog disables all library log output. Logging output is disabled by