amazon-web-services - AWS CLI --debug ouputs to stderror instead of stdout
问题描述
We have added the --debug
flag to all our AWS CLI commands so that we get more information on what is happening during deployments on our CI/CD servers.
The problem is that all debug
output is written to stderr
instead of stdout
, which leads to a lot of messages popping up as errormessages, although they are just debug information.
How can I configure the AWS CLI to output debug
messages to stdout
?
EDIT: how can I do this without redirecting stdout
? If I redirect it I will nog be able to access the debug output on my CD/CI server.
解决方案
You can try to redirect stderr
to stdout
from the shell command
aws commad 2>&1
推荐阅读
- jestjs - .env for jest 和 nest 不一样
- ldap - TDI for HCL Connections 6.5 同步失败并出现“错误的 SQL 语法 [];” 错误
- javascript - 打包使用 node-windows 作为服务运行的 Node.js 应用程序
- arrays - 类验证器不验证数组
- facebook - 在 chrome 扩展中使用 Facebook 消息 API/SDK?
- kubernetes - k3s - 树莓派上的高可用性 - 设置问题
- html - Chrome 在打印页面中给了我错误的边距
- python - 执行使用 nuitka 创建的独立 exe 时出现导入错误
- java - 启动屏幕和主屏幕后单击按钮上的 Android Studio
- gradle - 如何在 gradle 中与多个测试源集共享公共共享文件夹