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

建议加强log #4

Closed
lufengd3 opened this issue Apr 18, 2015 · 6 comments
Closed

建议加强log #4

lufengd3 opened this issue Apr 18, 2015 · 6 comments

Comments

@lufengd3
Copy link

log很长一串不换行
node startup之后停在 Starting PM2 daemon,没有log,排查困难

@keenwon
Copy link
Owner

keenwon commented Apr 18, 2015

1.log很长一串不换行
log每行最多一条,你说的很长应该是错误信息本身长吧?或则你贴出来看看

2.node startup之后停在 Starting PM2 daemon,没有log,排查困难
这个问题应该是pm2的问题,AntColony还没有启动,自然没有办法记录log,你可以看看pm2 logs有没有记录(另外注意下pm2的版本)

@lufengd3
Copy link
Author

log删了,之后运行再没出现log了,是装的部署说明里的那个版本的pm2,我再换个机器试试吧,那个上面装的东西有点多

@lufengd3
Copy link
Author

可以了,应该是pm2的问题,装了最新版本的Pm2,用的是pm2命令行的启动方式

也可能是之前mongo或者redis配置不当,pm2 logs没有内容

@lufengd3 lufengd3 reopened this Apr 18, 2015
@lufengd3
Copy link
Author

2015-04-18T12:44:42.739Z - error: uncaughtException: ERR wrong number of arguments for 'lpush' command date=Sat Apr 18 2015 08:44:42 GMT-0400 (EDT), pid=16499, uid=0, gid=0, cwd=/opt/antcolony, execPath=/usr/local/bin/node, version=v0.10.32, argv=[node, /opt/antcolony/src/queen.js, worker, 3000], rss=41279488, heapTotal=30107392, heapUsed=13004416, loadavg=[0.00439453125, 0.0576171875, 0.107421875], uptime=29164.958502573, trace=[column=31, file=/opt/antcolony/node_modules/redis/index.js, function=, line=317, method=null, native=false, column=17, file=events.js, function=ReplyParser.emit, line=95, method=emit, native=false, column=10, file=/opt/antcolony/node_modules/redis/lib/parser/javascript.js, function=ReplyParser.send_error, line=296, method=send_error, native=false, column=22, file=/opt/antcolony/node_modules/redis/lib/parser/javascript.js, function=ReplyParser.execute, line=181, method=execute, native=false, column=27, file=/opt/antcolony/node_modules/redis/index.js, function=RedisClient.on_data, line=547, method=on_data, native=false, column=14, file=/opt/antcolony/node_modules/redis/index.js, function=, line=102, method=null, native=false, column=17, file=events.js, function=Socket.emit, line=95, method=emit, native=false, column=14, file=_stream_readable.js, function=, line=764, method=null, native=false, column=17, file=events.js, function=Socket.emit, line=92, method=emit, native=false, column=10, file=_stream_readable.js, function=emitReadable_, line=426, method=null, native=false], stack=[Error: ERR wrong number of arguments for 'lpush' command,     at ReplyParser.<anonymous> (/opt/antcolony/node_modules/redis/index.js:317:31),     at ReplyParser.emit (events.js:95:17),     at ReplyParser.send_error (/opt/antcolony/node_modules/redis/lib/parser/javascript.js:296:10),     at ReplyParser.execute (/opt/antcolony/node_modules/redis/lib/parser/javascript.js:181:22),     at RedisClient.on_data (/opt/antcolony/node_modules/redis/index.js:547:27),     at Socket.<anonymous> (/opt/antcolony/node_modules/redis/index.js:102:14),     at Socket.emit (events.js:95:17),     at Socket.<anonymous> (_stream_readable.js:764:14),     at Socket.emit (events.js:92:17),     at emitReadable_ (_stream_readable.js:426:10)]

又有log了,这样的格式基本没办法看,我看你是用的winston,log格式可以调整么?

@keenwon
Copy link
Owner

keenwon commented Apr 18, 2015

应该是可以的,这两天没空,回头看看。

@lock
Copy link

lock bot commented Dec 28, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants