每当我运行chef-client
时,由于它正在执行我的食谱,我会将消息记录到控制台两次。
例如:
[2017-06-01T15:05:22-05:00] WARN: Skipping final node save because override_runlist was given
[2017-06-01T15:05:22-05:00] WARN: Skipping final node save because override_runlist was given
[2017-06-01T15:05:22-05:00] INFO: Chef Run complete in 1.187499 seconds
[2017-06-01T15:05:22-05:00] INFO: Chef Run complete in 1.187499 seconds
[2017-06-01T15:05:22-05:00] INFO: Skipping removal of unused files from the cache
[2017-06-01T15:05:22-05:00] INFO: Skipping removal of unused files from the cache
是否有这种情况发生的原因,如果可以,只能记录其中一条消息?
c:\chef>chef-client --version
Chef: 13.0.118
修改:如果我检查chef-client.log
我发现它(正确)只记录一次消息。只有控制台才能看到消息加倍