diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-09 23:19:05 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-09 23:19:05 +0800 |
commit | 663fd8f8491fcf10429388237cbb361856c6e49c (patch) | |
tree | 816456e6d44b124ac8c2dce814756f62e99a8ae0 /errs/errors.go | |
parent | 46898f1e554a87b88d722bcf0ef3bfb2c9974736 (diff) | |
download | dexon-663fd8f8491fcf10429388237cbb361856c6e49c.tar.gz dexon-663fd8f8491fcf10429388237cbb361856c6e49c.tar.zst dexon-663fd8f8491fcf10429388237cbb361856c6e49c.zip |
Moved log to debug
Diffstat (limited to 'errs/errors.go')
-rw-r--r-- | errs/errors.go | 10 |
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) |