Bug 12141 - Pseudo: Annotate error messages
Summary: Pseudo: Annotate error messages
Status: RESOLVED FIXED
Alias: None
Product: Pseudo
Classification: Yocto Project Subprojects
Component: pseudo (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 6.1 M4
Assignee: Dmitry Sakhonchik
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-09-29 15:59 UTC by Juro Bystricky
Modified: 2026-10-27 08:22 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juro Bystricky 2017-09-29 15:59:21 UTC
pseudo can be quite verbose. I have encountered pseudo.log files of more than 4GB. It can be difficult to find meaningful error messages drowned in tons of info/debug messages. It would be very useful if all error messages were prefixed with "ERROR:". Ideal error msg would look something like:

ERROR: [component] msg

Also similar annotation for other messages "INFO:" "DEBUG:" would make sorting through the pseudo.log easier.
Comment 1 Richard Purdie 2017-11-08 16:44:32 UTC
Being able to identify real pseudo issues from noise might help us track down some of the occasional permissions errors so this could help with that.
Comment 2 Seebs 2017-11-08 18:34:23 UTC
It might make sense to add a "severity" to messages. Right now categorization is by topic of thing, but "do I need to know" is a sort of separate category.
Comment 3 Randy MacLeod 2023-10-24 14:24:37 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 4 Dmitry Sakhonchik 2026-05-23 19:13:45 UTC
Hi everyone. I want to start working on this. Does anyone have any tips before I start in addition to what was said earlier? Maybe something's changed since 2017?
Comment 5 Randy MacLeod 2026-05-25 11:46:46 UTC
Thanks Dmitry,

Other than, start by doing something simple and sending a patch to feedback,
I don't have any tips. I've CCed Mark Hatle who might be able to give you more
guidance.
Comment 6 Mark Hatle 2026-05-25 20:25:13 UTC
As Randy said, just start suggesting logging changes.  There are already some categories of information to the pseudo messages, but you'll need to understand the log format and where the messages are.  (Many errors/logs might be in generated code, so the code generator is one place that will require modifications.)
Comment 7 Dmitry Sakhonchik 2026-09-11 07:26:00 UTC
Solution is included to master-next branch.
Comment 8 Randy MacLeod 2026-09-11 20:52:31 UTC
Hi Dmitry,

Not all commits to master-next make it into master for oe-core.
There will be a patch review meeting on Monday that will include your commit
if there are no issues found by the YP autobuilder testsuite.

If there are no objections, then the commit will be pushed to master.

When that happens, can you add a commit link here and resolve the issue again please ?

I'm not sure if you commit was sent to yocto-patch to get into pseudo 
or somewhere else so when the time is right please explain. 

The bug is of course only considered resolved once the pseudo code in oe-core
has the fix.

Thanks for your work on pseudo / Yocto !
Comment 9 Dmitry Sakhonchik 2026-09-11 22:01:20 UTC
Sorry, seems like I misinterpreted master-next’s meaning. I’ve sent my patches to yocto-patches, Mark included them in his series and pushed to master-next, so I decided that it had passed all review stages. Thank you for a clear explanation!
Comment 10 Randy MacLeod 2026-09-17 14:43:07 UTC
Moved to In progress review.
Comment 11 Dmitry Sakhonchik 2026-10-27 08:22:16 UTC
Change status to resolved

https://git.yoctoproject.org/pseudo/commit/?id=2afaba574cdece055a2dd8a4d6ccf455ec91c074