Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker输出日志乱码 #239

Closed
AsinRay opened this issue Jun 12, 2018 · 1 comment
Closed

docker输出日志乱码 #239

AsinRay opened this issue Jun 12, 2018 · 1 comment

Comments

@AsinRay
Copy link

AsinRay commented Jun 12, 2018

使用docker 方式启动,并将日志重定向到webqq.log文件,打开文件后发现有乱码.
示例如下:
[18/06/05 09:44:45] [�[36m群消息�[0m] �[36m超人类未来的总|【心域】战舰世界亚服 : �[0m�[36m一头雾水 质量效应?�[0m

@hexsum
Copy link
Owner

hexsum commented Jun 13, 2018

docker run -it --env MOJO_WEBQQ_DISABLE_COLOR=1
乱码的部分是一些颜色控制的代码,你的docker环境终端不支持彩色显示,可以在docker镜像启动时通过环境变量 设置 MOJO_WEBQQ_DISABLE_COLOR=1 来禁止彩色输出

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants