Fix logging to debug.