There is little to no logging in place as well as no intermediate results and it is therefore hard to understand how a package declared_license has been detected in a license_expression. We should potentially keep all the same intermediate results as we have in regular license detection as a diagnostic option, and while this may seem verbose this would be essential to track issues.