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

No output on CLI #1636

Open
3ynm opened this issue Jul 30, 2024 · 1 comment
Open

No output on CLI #1636

3ynm opened this issue Jul 30, 2024 · 1 comment

Comments

@3ynm
Copy link

3ynm commented Jul 30, 2024

For some reason the CLI is giving me no output at all.

$ ./vendor/bin/openapi --help
$ echo $?
1
$ ./vendor/zircote/swagger-php/bin/openapi --help
$ echo $?
1

Apparently it has something to do with the logger you use to output data. If I put echo $help previous to $logger->info($help), I get the output.

Sadly, I don't know what other information can I give you about my environment to reproduce the issue.

I'm using PHP 8.1.29 on a CentOS 7 environment.

@DerManoMann
Copy link
Collaborator

Yeah, that logger is a pain and just wraps the original code from the script in a PSR logger to make things a bit nicer overall.

Under the hood is uses [error_log](https://www.php.net/manual/en/function.error-log.php), so I suspect that your system is configured to write that to syslog rather than stdout/stderr.

I'll label this as enhancement - something I'd been meaning to improve for quite some time...

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

No branches or pull requests

2 participants