logging assembly discovery

#1562
**do not** create a duplicate of this logic. This needs to be part of the code doing the checks