You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logs from plugins are always shown as debug logs, even if it is info, warning or error logs.
To Reproduce
Steps to reproduce the behavior:
Ensure that Docker is not running
Run porter list
See that the logs output doesn't contain the error log message, "Docker is not available", written by the by the plugin. Only the RPC error is returned.
Run PORTER_LOGS_STRUCTURED=true porter list --verbosity debug
See that the logs output does contain the error log message, "Docker is not available", written by the by the plugin. But it is written with the debug log level.
Expected behavior
Information, warning and error logs from plugins should be written with the correct log level.
Porter Command and Output
PORTER_LOGS_STRUCTURED=true porter list
2024-07-13T23:00:18.371+0200 error rpc error: code = Unknown desc = Docker is not available
2024-07-13T23:00:18.371+0200 error could not list installations: could not read storage schema document: rpc error: code = Unknown desc = Docker is not available
2024-07-13T23:00:18.371+0200 error could not list installations: could not read storage schema document: rpc error: code = Unknown desc = Docker is not available
PORTER_LOGS_STRUCTURED=true porter list --verbosity debug
2024-07-13T22:57:36.433+0200 debug Checking database schema
2024-07-13T22:57:36.433+0200 debug Selected configured plugin {"plugin-key": "mongodb-docker"}
2024-07-13T22:57:36.434+0200 debug Connecting to plugin {"plugin-command": "/home/kim/.porter/porter plugin run storage.porter.mongodb-docker"}
2024-07-13T22:57:36.434+0200 debug starting plugin
2024-07-13T22:57:36.434+0200 debug plugin started
2024-07-13T22:57:36.434+0200 debug waiting for RPC address
2024-07-13T22:57:36.451+0200 debug using plugin
2024-07-13T22:57:36.452+0200 debug plugin address
2024-07-13T22:57:36.485+0200 debug Docker is not available
2024-07-13T22:57:36.485+0200 debug Docker is not available
2024-07-13T22:57:36.485+0200 error rpc error: code = Unknown desc = Docker is not available
2024-07-13T22:57:36.485+0200 error could not list installations: could not read storage schema document: rpc error: code = Unknown desc = Docker is not available
2024-07-13T22:57:36.485+0200 error could not list installations: could not read storage schema document: rpc error: code = Unknown desc = Docker is not available
2024-07-13T22:57:36.486+0200 debug received EOF, stopping recv loop
2024-07-13T22:57:36.487+0200 debug plugin process exited
2024-07-13T22:57:36.487+0200 debug plugin exited
Describe the bug
Logs from plugins are always shown as debug logs, even if it is info, warning or error logs.
To Reproduce
Steps to reproduce the behavior:
porter list
PORTER_LOGS_STRUCTURED=true porter list --verbosity debug
Expected behavior
Information, warning and error logs from plugins should be written with the correct log level.
Porter Command and Output
Version
porter v1.1.0 (b50c189)
The text was updated successfully, but these errors were encountered: