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
Journal: Add message ids for emergency log messages #28873
Conversation
@bluca, @poettering Kindly pitch in or the error descriptions and the possible fixes in your spare minutes sirs. Thank you. |
Don't worry about the message text for now, focus on the implementation so that they can be used and displayed |
Okay. I did get 7 hours of sleep. |
2a8707c
to
5b0873d
Compare
@bluca, I assigned a UUID to each of the 29 messages, and I added an entry for them with these UUIDs in the catalog. |
Now I need to modify the I found the functions are variadic, so they have room for the extra arg. The issue I have is how the MESSAGE_ID will get used. |
I traced the calls like so: |
I haven't found where exactly the MESSAGE_ID should be used Can you guide on that sir? Thank you so so much. |
Take a look at log_struct() |
Okay sir. Please can I ask questions till 10pm tonight? And maybe 2 questions tomorrow. I'd like this to be ready for testing by Monday. Thank you sir. |
@bluca, I've looked at the So, I'll spend time tomorrow studying these two functions in details: I didn't work on it again after we last communicated. I decided to watch some TV for the first time in about 12 months since I started learning programming. Thank you for being a great mentor. |
Before I go back to NFLX though,
I'm thinking we should add a |
that is not necessary, it is already possible to use it, check how MESSAGE_ID is used elsewhere in src/, it happens often |
I realized that too. |
I will be away for a week, but @poettering will be able to help you out |
Ohhh ..
Thank you so much for all I've gotten these past months. |
@poettering,
However to accomodate the va_args, will this be better:
what do you advise sir? |
If that is okay, |
@poettering, |
We can the use then message id to fetch the entry from the catalog somehow, |
I do appreciate your time on this sir. |
On the fixes sir. |
@bluca, |
The catalog is published at https://cgit.freedesktop.org/systemd/systemd/plain/catalog/systemd.catalog The outreachy internship period is now over, so you are not expected to work anymore - you are of course welcome to keep contributing if you want to |
I'd love to keep contributing. Thank you. |
Now that the internship issue is closed, |
Just open PRs directly, it's fine |
Okay sir. Thank you sir. |
You can use the mailing list for generic questions/topics https://lists.freedesktop.org/mailman/listinfo/systemd-devel |
Alright sir. Although I feel not everyone may have the time and patience to attend to my questions which may be crude, but I'll try, and I'll tag you in PRs too sir. |
There's a need to provide more details and possible fixes for all our emergency log messages.
So we're adding a UUID to each existing message, and making an entry for each of them in the catalog using this UUID.
We'll also be modifying the
log_emergency()
andlog_emergency_errno()
functions to require a MESSAGE_ID going forward.The ultimate goal is to help users find meaningful help when they encounter such emergency messages.