Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Unknown
-
Resolution: Fixed
-
Affects Version/s: 0.10.4, 0.10.8
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Chef::Provider::Deploy#migrate does not pass :output_on_failure => true to run_command so a failed migration has no output. Right now we're working around it by redirecting stdout & stderr to a log file in our migration command, but it would probably be cleaner if Chef::Provider::Deploy#migrate took an :output_on_failure option.
What do you think?
We're running into this too... Especially frustrating since when we ssh into the machine and run rake db:migrate manually (using copied and pasted command from error output), the command does not fail.
To me, it seems like :output_on_failure => true should be the default setting. I can't think of when I wouldn't want to see output from a failed command.
The first thing I always want to know when a command failed is what the output from the command was, to help me understand why it would have failed.