如何解决忽略通过pm2
我正在通过pm2
运行节点应用程序。在此,我们使用createCipher()
方法。
它会发出警告(node:88612) Warning: Use Cipheriv for counter mode of aes-256-ctr
我对此进行了研究,发现我们需要使用createCipheriv()
方法。
目前,我们还没有使用createCipheriv()
的计划,因为在使用完之后,我们必须使用新的加密数据来手动更新数据库数据。
它正在与node --no-warnings index.js
一起使用。
当我们使用pm2时,我们需要一种不通过pm2
或winston
日志记录该警告消息的方法
用于记录的软件包:
"winston": "^2.3.0","winston-daily-rotate-file": "^1.4.0"
pm2 json:
{
"script" : "../index.js","name" : "sample-app","exec_mode" : "cluster","instances" : 1,"log_date_format" : "YYYY-MM-DD HH:mm Z","error_file" : "../runtime/err.log","out_file" : "../runtime/out.log","merge_logs" : true
}
任何帮助将不胜感激。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。