[bitbake-devel] [PATCH] Lower priority of debug messages that should not be shown on the console
Andreas Müller
schnitzeltony at gmail.com
Sat Feb 22 11:57:47 UTC 2020
On Fri, Feb 21, 2020 at 10:00 PM Adrian Bunk <bunk at stusta.de> wrote:
>
> Signed-off-by: Adrian Bunk <bunk at stusta.de>
> ---
> bitbake/lib/bb/runqueue.py | 8 ++++----
> bitbake/lib/bb/siggen.py | 6 +++---
> 2 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
> index 71108eeed7..f6bd8db8ce 100644
> --- a/bitbake/lib/bb/runqueue.py
> +++ b/bitbake/lib/bb/runqueue.py
> @@ -2054,7 +2054,7 @@ class RunQueueExecute:
> self.update_holdofftasks()
>
> if not self.sq_live and not self.sqdone and not self.sq_deferred and not self.updated_taskhash_queue and not self.holdoff_tasks:
> - logger.info("Setscene tasks completed")
> + logger.debug(1, "Setscene tasks completed")
^ Could you please leave this one - I consider it helpful
>
> err = self.summarise_scenequeue_errors()
> if err:
> @@ -2259,7 +2259,7 @@ class RunQueueExecute:
> self.updated_taskhash_queue.remove((tid, unihash))
>
> if unihash != self.rqdata.runtaskentries[tid].unihash:
> - logger.info("Task %s unihash changed to %s" % (tid, unihash))
> + logger.debug(1, "Task %s unihash changed to %s" % (tid, unihash))
> self.rqdata.runtaskentries[tid].unihash = unihash
> bb.parse.siggen.set_unihash(tid, unihash)
> toprocess.add(tid)
> @@ -2304,7 +2304,7 @@ class RunQueueExecute:
> elif tid in self.scenequeue_covered or tid in self.sq_live:
> # Already ran this setscene task or it running. Report the new taskhash
> bb.parse.siggen.report_unihash_equiv(tid, newhash, origuni, newuni, self.rqdata.dataCaches)
> - logger.info("Already covered setscene for %s so ignoring rehash (remap)" % (tid))
> + logger.debug(1, "Already covered setscene for %s so ignoring rehash (remap)" % (tid))
> remapped = True
>
> if not remapped:
> @@ -2405,7 +2405,7 @@ class RunQueueExecute:
>
> for (tid, harddepfail, origvalid) in update_tasks:
> if tid in self.sqdata.valid and not origvalid:
> - logger.info("Setscene task %s became valid" % tid)
> + logger.debug(1, "Setscene task %s became valid" % tid)
> if harddepfail:
> self.sq_task_failoutright(tid)
>
> diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
> index c2d0c736cf..d5c5c5c0af 100644
> --- a/bitbake/lib/bb/siggen.py
> +++ b/bitbake/lib/bb/siggen.py
> @@ -606,7 +606,7 @@ class SignatureGeneratorUniHashMixIn(object):
> method = method + self.extramethod[tid]
>
> data = self.client().report_unihash_equiv(taskhash, method, wanted_unihash, extra_data)
> - bb.note('Reported task %s as unihash %s to %s (%s)' % (tid, wanted_unihash, self.server, str(data)))
> + bb.debug(1, 'Reported task %s as unihash %s to %s (%s)' % (tid, wanted_unihash, self.server, str(data)))
>
> if data is None:
> bb.warn("Server unable to handle unihash report")
> @@ -615,9 +615,9 @@ class SignatureGeneratorUniHashMixIn(object):
> finalunihash = data['unihash']
>
> if finalunihash == current_unihash:
> - bb.note('Task %s unihash %s unchanged by server' % (tid, finalunihash))
> + bb.debug(1, 'Task %s unihash %s unchanged by server' % (tid, finalunihash))
> elif finalunihash == wanted_unihash:
> - bb.note('Task %s unihash changed %s -> %s as wanted' % (tid, current_unihash, finalunihash))
> + bb.debug(1, 'Task %s unihash changed %s -> %s as wanted' % (tid, current_unihash, finalunihash))
> self.set_unihash(tid, finalunihash)
> return True
> else:
> --
> 2.17.1
>
> --
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/bitbake-devel
More information about the bitbake-devel
mailing list