You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using capistrano 3.4 with airbrussh 0.3.0 and the capistrano.log file was formatted with colors that command like cat can print. Since I upgraded to capistrano 3.8, there's no color anymore in the log file. Is there a way to bring that feature back?
The text was updated successfully, but these errors were encountered:
I am pretty sure this is due to a change in Capistrano itself. Capistrano now only uses color when it detects a color-capable console. Since a file is not a console, it automatically disables the color.
You can override this behavior by setting this environment variable:
SSHKIT_COLOR=1
There might be a way for Airbrussh to force the log file to always be color, without requiring the user to intervene by setting the environment variable. But I'm not sure if that is a behavior I want to hardcode. What do you think?
We made the assumption that most people would not want ansii color escape sequences in the log files since it makes them hard to read in a normal text editor. We kept support for the SSHKIT_COLOR env var so that people could override this, such as in your case.
You can also set this in Ruby using ENV['SSHKIT_COLOR'] = '1'. I guess the best place to do this would be the Capfile - correct me if I'm wrong @mattbrictson.
I was using capistrano 3.4 with airbrussh 0.3.0 and the capistrano.log file was formatted with colors that command like cat can print. Since I upgraded to capistrano 3.8, there's no color anymore in the log file. Is there a way to bring that feature back?
The text was updated successfully, but these errors were encountered: