V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
eccentric579
V2EX  ›  Node.js

请教一个 pm2 运行 js 的日志问题

  •  
  •   eccentric579 · Aug 18, 2021 · 4200 views
    This topic created in 1716 days ago, the information mentioned may be changed or developed.

    不会 js,fork 了一个别人的项目,想看看其中一个中间变量的值

    就加了图中的①,原有的是② ww.PNG

    结果 pm2 的日志中只有 2,没有 1 这是为什么

    zhangxh1023
        1
    zhangxh1023  
       Aug 20, 2021
    没执行到吧。。要么打印一下 tokenStore ?

    ```js
    console.log(JSON.stringify(tokenStore))
    ```

    确认一下么
    eccentric579
        2
    eccentric579  
    OP
       Aug 20, 2021
    @zhangxh1023 嗯,发现在另一个文件里有一样的 token refreshed. 日志里的是那里输出的。这一段没执行到
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2463 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 08:06 · PVG 16:06 · LAX 01:06 · JFK 04:06
    ♥ Do have faith in what you're doing.