Comments (4)
The problem is that Airbrussh is trying to create its default log file at log/capistrano.log
, and it cannot because log
exists and is not a directory.
You can solve this by changing the log file location to something else, or disable it entirely, using this option:
set :format_options, log_file: "a/different/path.log"
# or disable it
set :format_options, log_file: nil
That aside, I agree that the error behavior in this scenario could be improved. Should Airbrussh print an error that it cannot create the log file and then exit? Or print a warning and continue without writing a log? What is your expectation?
from airbrussh.
The problem is that Airbrussh is trying to create its default log file at log/capistrano.log, and it cannot because log exists and is not a directory.
indeed, I figured that much out, but the error message wasn't very clear.
Should Airbrussh print an error that it cannot create the log file and then exit? Or print a warning and continue without writing a log? What is your expectation?
Me personally, I'd expect it to "print an error that it cannot create the log file and then exit", maybe telling the user how to fix it (something like "you can change the log file via the :format_options option, check the help to know how")
from airbrussh.
Good suggestion. Thanks for the bug report! 🙇
from airbrussh.
I will accept a PR to improve the error message if anyone is interested! 😃
from airbrussh.
Related Issues (20)
- AppVeyor CI (Windows) builds failing with net-ssh 4.0.0
- command_output HOT 9
- Colors in the capistrano.log file HOT 3
- Circular dependency warning
- Empty console output HOT 9
- Customize output to show server hostname HOT 1
- Mocha::NotInitializedError on stubbed tests when running minitest locally HOT 2
- "invalid byte sequence in UTF-8" when rsyncing files with international character
- Make rake a gem dependency HOT 3
- Make ConsoleFormatter's context configurable HOT 5
- Console error only when using Spring HOT 1
- Test on ruby 3
- Travis-CI builds are no longer working HOT 3
- Replace Travis with CircleCI HOT 1
- Switch from alias_method to prepend HOT 7
- Colorize LogMessages again HOT 3
- IO.console can be nil
- Hostname in output HOT 1
- Tests fail under Ruby 2.4.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airbrussh.