adapt logging to pass the old testsuite