mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
554894287e
commit
622ec78f7e
@@ -607,7 +607,7 @@ class SignatureGeneratorUniHashMixIn(object):
|
||||
method = method + self.extramethod[tid]
|
||||
|
||||
data = self.client().report_unihash_equiv(taskhash, method, wanted_unihash, extra_data)
|
||||
hashequiv_logger.info('Reported task %s as unihash %s to %s (%s)' % (tid, wanted_unihash, self.server, str(data)))
|
||||
hashequiv_logger.verbose('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")
|
||||
@@ -616,14 +616,14 @@ class SignatureGeneratorUniHashMixIn(object):
|
||||
finalunihash = data['unihash']
|
||||
|
||||
if finalunihash == current_unihash:
|
||||
hashequiv_logger.info('Task %s unihash %s unchanged by server' % (tid, finalunihash))
|
||||
hashequiv_logger.verbose('Task %s unihash %s unchanged by server' % (tid, finalunihash))
|
||||
elif finalunihash == wanted_unihash:
|
||||
hashequiv_logger.info('Task %s unihash changed %s -> %s as wanted' % (tid, current_unihash, finalunihash))
|
||||
hashequiv_logger.verbose('Task %s unihash changed %s -> %s as wanted' % (tid, current_unihash, finalunihash))
|
||||
self.set_unihash(tid, finalunihash)
|
||||
return True
|
||||
else:
|
||||
# TODO: What to do here?
|
||||
hashequiv_logger.info('Task %s unihash reported as unwanted hash %s' % (tid, finalunihash))
|
||||
hashequiv_logger.verbose('Task %s unihash reported as unwanted hash %s' % (tid, finalunihash))
|
||||
|
||||
except hashserv.client.HashConnectionError as e:
|
||||
bb.warn('Error contacting Hash Equivalence Server %s: %s' % (self.server, str(e)))
|
||||
|
||||
Reference in New Issue
Block a user