summaryrefslogtreecommitdiffstats
path: root/bitbake/contrib/autobuilderlog.json
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2020-03-11 18:28:46 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-03-13 11:29:23 +0000
commitb2d55ec1eb7e02579d05b1e1dc0243c33c565420 (patch)
tree51c5a0eae0dd993a2f45198bafc4c1d48fab2073 /bitbake/contrib/autobuilderlog.json
parent25944b82597b6ee6276956831c4c3b67608c8a38 (diff)
downloadpoky-b2d55ec1eb7e02579d05b1e1dc0243c33c565420.tar.gz
bitbake: knotty: Update hash equivalence logging
Updates hash equivalence logging so that the interesting VERBOSE messages are always logged to the consolelog file so that issues in individual user builds can be diagnosed. The autobuilder logging config then updates this so that they also are shown on stdout, since the consolelog file is not capture there. In order to facilitate this, 2 new logging handlers were added, "BitBake.verbconsole" and "BitBake.verbconsolelog". Neither of these handlers are attached to anything by default, but they will log any messages that wouldn't otherwise be logged by the normal console or consolelog handlers. Users can attach whatever loggers the desire to this handler to get them to appear on the console or in the consolelog, as demonstrated by the autobuilderlog.json file. (Bitbake rev: 766587c0baaaeb5cda3e9454395edbb70e33f756) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/contrib/autobuilderlog.json')
-rw-r--r--bitbake/contrib/autobuilderlog.json18
1 files changed, 2 insertions, 16 deletions
diff --git a/bitbake/contrib/autobuilderlog.json b/bitbake/contrib/autobuilderlog.json
index 103a1141f6..193a675a1f 100644
--- a/bitbake/contrib/autobuilderlog.json
+++ b/bitbake/contrib/autobuilderlog.json
@@ -1,27 +1,13 @@
1{ 1{
2 "version": 1, 2 "version": 1,
3 "handlers": {
4 "autobuilderlog": {
5 "class": "logging.FileHandler",
6 "formatter": "logfileFormatter",
7 "level": "DEBUG",
8 "filename": "autobuilder.log",
9 "mode": "w"
10 }
11 },
12 "formatters": {
13 "logfileFormatter": {
14 "format": "%(name)s: %(levelname)s: %(message)s"
15 }
16 },
17 "loggers": { 3 "loggers": {
18 "BitBake.SigGen.HashEquiv": { 4 "BitBake.SigGen.HashEquiv": {
19 "level": "VERBOSE", 5 "level": "VERBOSE",
20 "handlers": ["autobuilderlog"] 6 "handlers": ["BitBake.verbconsole"]
21 }, 7 },
22 "BitBake.RunQueue.HashEquiv": { 8 "BitBake.RunQueue.HashEquiv": {
23 "level": "VERBOSE", 9 "level": "VERBOSE",
24 "handlers": ["autobuilderlog"] 10 "handlers": ["BitBake.verbconsole"]
25 } 11 }
26 } 12 }
27} 13}