美文网首页
grpc python expected a string or

grpc python expected a string or

作者: 邵红晓 | 来源:发表于2018-11-26 15:15 被阅读0次

首先python添加打印日志

import logging

logging.basicConfig()

解决:No handlers could be found for logger grpc报错

然后

def write_hive_file(dir, str):

    open(dir, 'a').write(str)

write_hive_file(_LOG_PATH, str(object=res))

类型转换为字符串就可以了

相关文章

网友评论

      本文标题:grpc python expected a string or

      本文链接:https://www.haomeiwen.com/subject/vpebqqtx.html