Where to find log messages printed in __anonymous() function

81 Views Asked by At

I have a recipe with a 'python __anonymous()' function, that prints a lot of information using bb.plain() and bb.debug().

When I bitbake the recipe, the messages contained within bb.plain() gets printed to stdout as expected, but after bitbake is done, I cannot find any output from neither bb.plain() nor bb.debug() in any of the log files.

I have similar logging in various other 'python do_...()' tasks, and all of that is present in the respective task log after bitbake completes.

Where can I find messages logged by the __anonymous function?

1

There are 1 best solutions below

1
On

Anonymous functions would execute at parsing time and the default log level is warning during parsing. plain and debug messages would only show if you run bitbake with the -D option and only when the recipe is reparsed.