Giter Site home page Giter Site logo

建议加强log about antcolony HOT 6 CLOSED

keenwon avatar keenwon commented on September 12, 2024
建议加强log

from antcolony.

Comments (6)

keenwon avatar keenwon commented on September 12, 2024

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

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

from antcolony.

lufengd3 avatar lufengd3 commented on September 12, 2024

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

from antcolony.

lufengd3 avatar lufengd3 commented on September 12, 2024

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

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

from antcolony.

lufengd3 avatar lufengd3 commented on September 12, 2024
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格式可以调整么?

from antcolony.

keenwon avatar keenwon commented on September 12, 2024

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

from antcolony.

lock avatar lock commented on September 12, 2024

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.

from antcolony.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.