aboutsummaryrefslogtreecommitdiffstats
path: root/errs/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'errs/errors.go')
-rw-r--r--errs/errors.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/errs/errors.go b/errs/errors.go
index f1b0ebdbb..2e6c32494 100644
--- a/errs/errors.go
+++ b/errs/errors.go
@@ -4,6 +4,7 @@ import (
"fmt"
"github.com/ethereum/go-ethereum/logger"
+ "github.com/ethereum/go-ethereum/logger/glog"
)
/*
@@ -76,9 +77,18 @@ func (self Error) Error() (message string) {
return self.message
}
+func (self Error) Log(v glog.Verbose) {
+ if v {
+ v.Infoln(self)
+ }
+ //log.Sendln(self.level, self)
+}
+
+/*
func (self Error) Log(log *logger.Logger) {
log.Sendln(self.level, self)
}
+*/
/*
err.Fatal() is true if err's severity level is 0 or 1 (logger.ErrorLevel or logger.Silence)