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

线上环境发生500错误,但是日志文件中没有相关信息 #1106

Closed
t04041143 opened this issue Mar 15, 2018 · 7 comments

Comments

Projects
None yet
3 participants
@t04041143
Copy link

commented Mar 15, 2018

目前估计是请求没有到达controller,因为action中catch的日志没有输出,如果是框架的错误,那么如何能够把日志打出来呢?

@lushijie

This comment has been minimized.

Copy link
Member

commented Mar 15, 2018

看下pm2日志信息

@t04041143

This comment has been minimized.

Copy link
Author

commented Mar 15, 2018

没有使用PM2,一个docker中只有一个thinkjs进程

@lizheming

This comment has been minimized.

Copy link
Contributor

commented Mar 15, 2018

docker logs 看看呢?

@t04041143

This comment has been minimized.

Copy link
Author

commented Mar 16, 2018

应该和docker关系不大,因为http 500的时候,x-powered-by的值是thinkjs

@lizheming

This comment has been minimized.

Copy link
Contributor

commented Mar 16, 2018

不是说和 docker 有关系,有些错误会直接打印到控制台不走 logger 没办法记录到文件中,所以看看 docker logs 里面有没有什么错误信息。

@t04041143

This comment has been minimized.

Copy link
Author

commented Mar 16, 2018

谢谢,已经看到日志 @lizheming

@t04041143 t04041143 closed this Mar 16, 2018

@lizheming

This comment has been minimized.

Copy link
Contributor

commented Mar 16, 2018

@t04041143 具体是什么错误,能不能贴一下,我们看一下是否是某些场景问题导致没走 logger 写到文件中?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.