chef-solo从bash脚本获取日志

我正在通过下面的厨师执行shell脚本

execute 'Run postgres data migration' do command '/home/ubuntu/build-target/infra-base/psql10_migration.sh' live_stream true action :run only_if { ::File.exist?('/home/ubuntu/build-target/infra-base/psql10_migration.sh') } end 

我的厨师日志被定向到一个文件( log_location '/var/log/arkin/chef-run.log' / log_location '/var/log/arkin/chef-run.log'

现在我没有从bash脚本psql10_migration.sh获取任何日志。 有人可以告诉我如何从bash脚本中获取日志?

用于bash重定向,如下所示

 execute 'Run postgres data migration' do command '/home/ubuntu/build-target/infra-base/psql10_migration.sh >> /home/ubuntu/logs/psql10-migration.log 2>&1' action :run only_if { ::File.exist?('/home/ubuntu/build-target/infra-base/psql10_migration.sh') } end