Fix scanning

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
correcting a bug introduced by myself during logging implementation