diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2020-03-09 11:33:52 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-03-13 11:29:23 +0000 |
commit | 622ec78f7e3a58e2e1402b046345f52b68effe21 (patch) | |
tree | 945aeef975a5a9eca87efa348a4d5e036e09da50 /bitbake/lib/bb/siggen.py | |
parent | 554894287ec8f3bd0612dddabee43213c12c3dc3 (diff) | |
download | poky-622ec78f7e3a58e2e1402b046345f52b68effe21.tar.gz |
bitbake: runqueue/siggen: Lower hash equivalence logging
Lowers the level at which hash equivalence messages are logged so as to
not annoy the majority of users. The autobuilder can use a custom
logging configuration to log these to a file for debugging (see
contrib/autobuilderlog.json)
[YOCTO #13813]
(Bitbake rev: 2ddb649ea31afe052f08e3969e36abf6fb515bc2)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/siggen.py')
-rw-r--r-- | bitbake/lib/bb/siggen.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index 0357b544b5..8bfc45235d 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py | |||
@@ -607,7 +607,7 @@ class SignatureGeneratorUniHashMixIn(object): | |||
607 | method = method + self.extramethod[tid] | 607 | method = method + self.extramethod[tid] |
608 | 608 | ||
609 | data = self.client().report_unihash_equiv(taskhash, method, wanted_unihash, extra_data) | 609 | data = self.client().report_unihash_equiv(taskhash, method, wanted_unihash, extra_data) |
610 | hashequiv_logger.info('Reported task %s as unihash %s to %s (%s)' % (tid, wanted_unihash, self.server, str(data))) | 610 | hashequiv_logger.verbose('Reported task %s as unihash %s to %s (%s)' % (tid, wanted_unihash, self.server, str(data))) |
611 | 611 | ||
612 | if data is None: | 612 | if data is None: |
613 | bb.warn("Server unable to handle unihash report") | 613 | bb.warn("Server unable to handle unihash report") |
@@ -616,14 +616,14 @@ class SignatureGeneratorUniHashMixIn(object): | |||
616 | finalunihash = data['unihash'] | 616 | finalunihash = data['unihash'] |
617 | 617 | ||
618 | if finalunihash == current_unihash: | 618 | if finalunihash == current_unihash: |
619 | hashequiv_logger.info('Task %s unihash %s unchanged by server' % (tid, finalunihash)) | 619 | hashequiv_logger.verbose('Task %s unihash %s unchanged by server' % (tid, finalunihash)) |
620 | elif finalunihash == wanted_unihash: | 620 | elif finalunihash == wanted_unihash: |
621 | hashequiv_logger.info('Task %s unihash changed %s -> %s as wanted' % (tid, current_unihash, finalunihash)) | 621 | hashequiv_logger.verbose('Task %s unihash changed %s -> %s as wanted' % (tid, current_unihash, finalunihash)) |
622 | self.set_unihash(tid, finalunihash) | 622 | self.set_unihash(tid, finalunihash) |
623 | return True | 623 | return True |
624 | else: | 624 | else: |
625 | # TODO: What to do here? | 625 | # TODO: What to do here? |
626 | hashequiv_logger.info('Task %s unihash reported as unwanted hash %s' % (tid, finalunihash)) | 626 | hashequiv_logger.verbose('Task %s unihash reported as unwanted hash %s' % (tid, finalunihash)) |
627 | 627 | ||
628 | except hashserv.client.HashConnectionError as e: | 628 | except hashserv.client.HashConnectionError as e: |
629 | bb.warn('Error contacting Hash Equivalence Server %s: %s' % (self.server, str(e))) | 629 | bb.warn('Error contacting Hash Equivalence Server %s: %s' % (self.server, str(e))) |