aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-20 17:50:43 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-20 17:50:43 +0800
commit36c9c93720c41be260f4574dd9feb71306ae4a0e (patch)
tree554c2170a3256b068150cbcad43dfa295aec6476
parent12f30e6220354c4a8b08ecf41bb53444143f3660 (diff)
parenta2fb265563a3a6eb80efc5720bb0c6f3fec6f397 (diff)
downloadgo-tangerine-36c9c93720c41be260f4574dd9feb71306ae4a0e.tar.gz
go-tangerine-36c9c93720c41be260f4574dd9feb71306ae4a0e.tar.zst
go-tangerine-36c9c93720c41be260f4574dd9feb71306ae4a0e.zip
Merge branch 'develop' of github.com:ethereum/eth-go into develop
-rw-r--r--ethutil/config.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/ethutil/config.go b/ethutil/config.go
index 296b72d9e..fd590fbdb 100644
--- a/ethutil/config.go
+++ b/ethutil/config.go
@@ -130,7 +130,6 @@ func (log *Logger) Infoln(v ...interface{}) {
return
}
- //fmt.Println(len(log.logSys))
for _, logger := range log.logSys {
logger.Println(v...)
}
@@ -145,3 +144,15 @@ func (log *Logger) Infof(format string, v ...interface{}) {
logger.Printf(format, v...)
}
}
+
+func (log *Logger) Fatal(v ...interface{}) {
+ if log.logLevel > LogLevelInfo {
+ return
+ }
+
+ for _, logger := range log.logSys {
+ logger.Println(v...)
+ }
+
+ os.Exit(1)
+}