Skip to content

[Enhancement] Want's to see yii log in artifacts if test fails #7

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

Closed
aywan opened this issue Apr 9, 2020 · 3 comments
Closed

[Enhancement] Want's to see yii log in artifacts if test fails #7

aywan opened this issue Apr 9, 2020 · 3 comments

Comments

@aywan
Copy link
Contributor

aywan commented Apr 9, 2020

Hi.
I get a problems, when test run on another server with CI. It's hard to recreate same environment at local. In our code we are logging some exceptions and returning only error message without description. But at same moment everything writes to log.
But Codeception\Lib\Connector\Yii2\Logger send it only to Codeception debug, and it's not possible to see it without debug flag.

I propose sending this log to Codeception metadata artifacts. I quickly made "ugly" variant of solution #8 (comment)

@SamMousa
Copy link
Collaborator

SamMousa commented May 3, 2020

To me it makes more sense to have an option to send codeception debug logs to a file (ie not making this module specific).

@aywan
Copy link
Contributor Author

aywan commented Jun 15, 2020

Codeception is write logs to a file, into output directory. But application logs is missed there too.

@SamMousa
Copy link
Collaborator

I think the related PR was merged, so closing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants