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

dlt_common.c: Change default logging_mode #406

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

wusto
Copy link
Contributor

@wusto wusto commented Sep 13, 2022

Up to now the default for logging is stdout (DLT_LOG_TO_CONSOLE).

Scenario:
program_a arg1 | dd of=/my-beauty-case

If program_a wants to log to dlt, but it fails to connect to the socket: socket /run/dlt-files/dlt cannot be opened, error:Resource temporarily unavailable. Retrying later...

The error will be logged by default to stdout leading in the best case to an error and in the worst to damaged partitions.

To solve this log to STDERR (DLT_LOG_TO_STDERR) by default.

Up to now the default for logging is stdout (DLT_LOG_TO_CONSOLE).

Scenario:
program_a arg1 | dd of=/my-beauty-case

If program_a wants to log to dlt, but it fails to connect to the socket:
socket /run/dlt-files/dlt cannot be opened, error:Resource temporarily
unavailable. Retrying later...

The error will be logged by default to stdout leading in the best case
to an error and in the worst to damaged partitions.

To solve this log to STDERR (DLT_LOG_TO_STDERR) by default.
@thanhbnq thanhbnq merged commit 995ba51 into COVESA:master Sep 21, 2022
@thanhbnq
Copy link
Collaborator

Thank you very much for your PR @wusto

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

Successfully merging this pull request may close these issues.

2 participants