本文介绍了Testrpc错误:'找不到记录器'jsonrpc.manager'的记录器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行松露init并使示例合同运行.我运行松露初始化",松露编译"和& 松露迁移".在一个单独的终端窗口(与项目相同的目录)中,我没有任何错误地运行testrpc -我得到了我应该得到的10个散列.所以,

I'm trying to run truffle init and get the sample contract running. I run 'truffle init', 'truffle compile', & 'truffle migrate'. In a separate terminal window (same directory as the project), I run testrpc with no errors--I get the 10 hashes I'm supposed to get. So,

在testrpc中,这是我运行松露迁移"时的输出:在localhost:8545 127.0.0.1上侦听--[2016-12-07 20:44:14]"POST/HTTP/1.1" 200 718 0.001816找不到记录程序"jsonrpc.manager"的处理程序.

In testrpc, this is the output when I run 'truffle migrate':Listening on localhost:8545 127.0.0.1 - - [2016-12-07 20:44:14] "POST / HTTP/1.1" 200 718 0.001816No handlers could be found for logger "jsonrpc.manager".

是否会有其他网络连接干扰?我目前没有其他人知道我正在跑步.在Mac上为10.12.1.

Could there be other network connections interfering? I currently don't have any others running that I know of. On a Mac, 10.12.1.

谢谢大家.

推荐答案

添加到/bin/testrpc或/usr/local/bin/testrpc(无论安装了testrpc的位置)的以下行:

to /bin/testrpc or /usr/local/bin/testrpc (wherever you have testrpc installed) add the following lines:

import logging

logging.basicConfig()

这将为您提供实际的日志记录输出,并向您显示需要解决的问题.就我而言,这是与气体有关的错误.

This will give you actual logging output and show you what you need to fix. In my case, it was a gas-related error.

这篇关于Testrpc错误:'找不到记录器'jsonrpc.manager'的记录器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 19:32