瀏覽代碼

add logging start/exit to js console

zelig 11 年之前
父節點
當前提交
f90001e938
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      ethereum/repl.go

+ 2 - 0
ethereum/repl.go

@@ -23,11 +23,13 @@ func NewJSRepl(ethereum *eth.Ethereum) *JSRepl {
 }
 
 func (self *JSRepl) Start() {
+	logger.Infoln("init JS Console")
 	self.read()
 }
 
 func (self *JSRepl) Stop() {
 	self.re.Stop()
+	logger.Infoln("exit JS Console")
 }
 
 func (self *JSRepl) parseInput(code string) {