logging assembly discovery

#1562
have a null check