Tien Vo
03/25/2023, 4:02 PMpact_ffi::plugins: Failed to call out to plugin - Request to configure interaction failed: Failed to process protobuf: Failed to invoke protoc binary: exit code exit status: 1
According to this https://github.com/pactflow/pact-protobuf-plugin#logging, how can I set env LOG_LEVEL exactly?
I checked /path/to/plugins/protobuf/log/*.log.Y-M-D , all files are empty, and I can't see the real problem.
I tried this but it doesn't work:
LOG_LEVEL=debug PACT_LOGLEVEL=trace phpunit example/async-message/consumer/tests/Contract/uglyog
LOG_LEVEL environment variable, but just note that this is a Node.js/Ruby specific way. But there are FFI functions to setup the logging.uglyog
Failed to invoke protoc binary: exit code exit status: 1 means the protoc command failed with an error, and the log level will not control that tools output. I think it writes to stderr.Tien Vo
03/27/2023, 2:50 AMpactffi_init_with_log_level('debug') . I don't know what I am missing.uglyog
Tien Vo
03/27/2023, 2:53 AMtrace before but it doesn't help.Tien Vo
03/27/2023, 2:53 AMFailed to invoke protoc binary: exit code exit status: 1 . It's just because a typo that make the path to proto file invalidTien Vo
03/27/2023, 2:54 AM/path/to/plugins/protobuf/log/*.log.Y-M-D files are empty is the problem I am facinguglyog
Tien Vo
03/27/2023, 2:57 AMuglyog
LOG_LEVEL for the plugin process based on what you have setup. Do you see any entries in the console for the tests?Tien Vo
03/27/2023, 3:06 AMit is meant to set theahhh, yess?? I am wondering how to do thatfor the plugin process based on what you have setupLOG_LEVEL
Tien Vo
03/27/2023, 3:07 AMpactffi_init_with_log_level('debug')