solana-go/logging.go

16 lines
228 B
Go

package solana
import (
"os"
"github.com/dfuse-io/logging"
"go.uber.org/zap"
)
var traceEnabled = os.Getenv("TRACE") != ""
var zlog = zap.NewNop()
func init() {
logging.Register("github.com/dfuse-io/solana-go", &zlog)
}