eccentric579
V2EX  ›  Node.js

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

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

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

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

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

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

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

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