bcosorg / bcos

BCOS平台(Be Credible, Open & Secure)
GNU General Public License v3.0
873 stars 286 forks source link

BCOS问题3:日志输出问题 #74

Open hadoop002 opened 6 years ago

hadoop002 commented 6 years ago

执行bcoseth --version 输入如下内容:

2017-12-11 21:45:07,873 TRACE [default] [dev::eth::ChainParams dev::eth::ChainParams::loadConfig(const string&, const h256&) const] [/opt/bcos/libethereum/ChainParams.cpp:124] genesisStateStr = {"0000000000000000000000000000000000000001":{"precompiled":{"linear":{"base":3000,"word":0},"name":"ecrecover"}},"0000000000000000000000000000000000000002":{"precompiled":{"linear":{"base":60,"word":12},"name":"sha256"}},"0000000000000000000000000000000000000003":{"precompiled":{"linear":{"base":600,"word":120},"name":"ripemd160"}},"0000000000000000000000000000000000000004":{"precompiled":{"linear":{"base":15,"word":3},"name":"identity"}},"004f9d39c8424e7f86004622cef21a0bbe140bfa":{"balance":"999999999999000000000000000000"},"00dcf3367eab3b34d6a598f453d1aee9146b50f3":{"balance":"999999999999000000000000000000"}}
2017-12-11 21:45:07,887 INFO [default] cp.dataDir=/mydata/nodedata-1/,cp.wallet=/mydata/nodedata-1//keys.info,cp.keystoreDir=/mydata/nodedata-1//keystore/,cp.logFileConf=/mydata/nodedata-1//log.conf,cp.storagePath=/mydata/nodedata-1//
2017-12-11 21:45:07,887 TRACE [default] [int main(int, char**)] [/opt/bcos/eth/main.cpp:468]  Main:: author: 0000000000000000000000000000000000000000
eth version 1.3.0
eth network protocol version: 63
Client database version: 12041
Build: ETH_BUILD_PLATFORM/ETH_BUILD_TYPE

只是想看看version,就输出了这么多调试信息。 不光如此,还在当前目录下创建了一个logs目录,目录里面有个myeasylog.log文件,内容是:

2017-12-11 21:46:59,456 TRACE [default] [dev::eth::ChainParams dev::eth::ChainParams::loadConfig(const string&, const h256&) const] [/opt/bcos/libethereum/ChainParams.cpp:124] genesisStateStr = {"0000000000000000000000000000000000000001":{"precompiled":{"linear":{"base":3000,"word":0},"name":"ecrecover"}},"0000000000000000000000000000000000000002":{"precompiled":{"linear":{"base":60,"word":12},"name":"sha256"}},"0000000000000000000000000000000000000003":{"precompiled":{"linear":{"base":600,"word":120},"name":"ripemd160"}},"0000000000000000000000000000000000000004":{"precompiled":{"linear":{"base":15,"word":3},"name":"identity"}},"004f9d39c8424e7f86004622cef21a0bbe140bfa":{"balance":"999999999999000000000000000000"},"00dcf3367eab3b34d6a598f453d1aee9146b50f3":{"balance":"999999999999000000000000000000"}}
2017-12-11 21:46:59,457 INFO [default] cp.dataDir=/mydata/nodedata-1/,cp.wallet=/mydata/nodedata-1//keys.info,cp.keystoreDir=/mydata/nodedata-1//keystore/,cp.logFileConf=/mydata/nodedata-1//log.conf,cp.storagePath=/mydata/nodedata-1//
2017-12-11 21:46:59,457 TRACE [default] [int main(int, char**)] [/opt/bcos/eth/main.cpp:468]  Main:: author: 0000000000000000000000000000000000000000

应该是debug信息。

建议尽快发布一个新版本,去掉这些调试信息

hadoop002 commented 6 years ago

不光是执行bcoseth --version命令,执行任何bcoseth的命令,都会输出调试信息,都会在当前目录下生成logs目录,logs目录下有个myeasylog.log文件

wheatli commented 6 years ago

感谢您的反馈,我们会安排更新