Add more logging to the scanner to get a better idea what's going wrong
on some systems.