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

Dump logs of API and Pipeline services #334

Closed
JenySadadia opened this issue Apr 16, 2024 · 2 comments · Fixed by kernelci/kernelci-pipeline#672
Closed

Dump logs of API and Pipeline services #334

JenySadadia opened this issue Apr 16, 2024 · 2 comments · Fixed by kernelci/kernelci-pipeline#672
Assignees

Comments

@JenySadadia
Copy link
Contributor

On the staging instance, we are running Dozzle container for publishing API and Pipeline service logs.
i.e. https://staging.kernelci.org:9088/

One problem with it is whenever services restart, we lose all the previous logs and hence also lose a trail of failures as well.
It's not possible to catch all failures without log dump. Hence, enable a mechanism to dump logs to log files to debug the services at a later time.

@JenySadadia
Copy link
Contributor Author

Some comments based on an initial investigation:

@nuclearcat
Copy link
Member

Finally i found approach that helped me in past. In general terms it is described here: https://docs.python.org/3/howto/logging-cookbook.html

You can add multiple handlers with different log levels to Logging, so this way you can save in file verbose submission info, and leave for stdout (dozzle/kubernetes) generic info, simultaneously.

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 a pull request may close this issue.

2 participants