Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logfile does not contain exception messages #1481

Closed
staabm opened this issue Dec 28, 2017 · 1 comment
Closed

logfile does not contain exception messages #1481

staabm opened this issue Dec 28, 2017 · 1 comment
Labels

Comments

@staabm
Copy link
Contributor

staabm commented Dec 28, 2017

Q A
Issue Type Feature Request
Deployer Version 6.0.3
Local Machine OS N/A
Remote Machine OS N/A

Description

when using the --log option I see the progress and messages of the deployment in the given logfile.
when the deployment runs into a exception and stopps, the message of the exception is missing from the logfile.

it would be very helpful to have at least the message of the occured exception in the logfile, at best even the stacktrace next to it.

Steps to reproduce

dep errors --log deployer.log

Content of deploy.php

namespace Deployer;

require 'recipe/common.php';

task('errors', function() {
    run('echo "test"'); // create some output, works correctly
    throw new \Exception("boooom!"); // this exception message is missing from the logfile
});

Output log

With enabled option for verbose output -vvv.

[localhost] > echo "test"
[localhost] < test
@staabm
Copy link
Contributor Author

staabm commented Dec 30, 2017

Implemented with #1482

@staabm staabm closed this as completed Dec 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants