减少 Terragrunt 控制台输出
Reduce Terragrunt console output
Terragrunt 输出数百行文本,例如:
[terragrunt] 2020/12/14 08:55:27 Setting download directory for module /module/name to /module/name/.terragrunt-cache
和
[terragrunt] [/module/name ] 2020/12/14 08:55:27 Module /module/name must wait for 1 dependencies to finish
有没有什么方法可以让这个输出安静下来,只看到错误?
目前,没有内置选项可以做到这一点。有 opened issue for that. But since terragrunt
logs everything into stderr
, you can workaround it by redirecting terragrunt
日志:
terragrunt apply 2>/dev/null
Terragrunt 输出数百行文本,例如:
[terragrunt] 2020/12/14 08:55:27 Setting download directory for module /module/name to /module/name/.terragrunt-cache
和
[terragrunt] [/module/name ] 2020/12/14 08:55:27 Module /module/name must wait for 1 dependencies to finish
有没有什么方法可以让这个输出安静下来,只看到错误?
目前,没有内置选项可以做到这一点。有 opened issue for that. But since terragrunt
logs everything into stderr
, you can workaround it by redirecting terragrunt
日志:
terragrunt apply 2>/dev/null