首先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))
类型转换为字符串就可以了
首先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
网友评论