FunASR
FunASR copied to clipboard
pip insatll funasr 以后,logging 不能正常打印
Notice: In order to resolve issues more efficiently, please raise issue following the template. (注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)
🐛 Bug
pip insatll funasr 以后,logging 不能正常打印
To Reproduce
1 在虚拟环境中 pip install funasr
运行代码
from funasr import AutoModel
global logger
logging.basicConfig(
filename='server.log',
level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
)
logger = logging.getLogger(__name__)
print("main")
try:
print("start")
logger.info("Starting FunASR processing...")
# 调用 funasr 的相关功能
except Exception as e:
print("Exception")
logger.error("An error occurred: %s", e)
logger.info('Start')
logger.debug('create event')
Expected behavior
观察运行打印,只有print打印出来了,其他logger 打印没有输出
Environment
- OS (Linux Ubuntu):
- FunASR Version 1.1.6