mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
console: remove log
This commit is contained in:
parent
b65cd86326
commit
8d271d0a7c
1 changed files with 1 additions and 4 deletions
|
|
@ -18,7 +18,6 @@ package console
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/ethereum/go-ethereum/log"
|
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
|
|
@ -283,9 +282,7 @@ func (c *Console) Welcome() {
|
||||||
`console.log("at block: " + eth.blockNumber + " (" + new Date(1000 * eth.getBlock(eth.blockNumber).timestamp) + ")");`,
|
`console.log("at block: " + eth.blockNumber + " (" + new Date(1000 * eth.getBlock(eth.blockNumber).timestamp) + ")");`,
|
||||||
`console.log("datadir: " + admin.datadir);`,
|
`console.log("datadir: " + admin.datadir);`,
|
||||||
} {
|
} {
|
||||||
if _, err := c.jsre.Run(command); err != nil {
|
c.jsre.Run(command)
|
||||||
log.Error("Geth JavaScript console error", "err", err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// List all the supported modules for the user to call
|
// List all the supported modules for the user to call
|
||||||
if apis, err := c.client.SupportedModules(); err == nil {
|
if apis, err := c.client.SupportedModules(); err == nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue