Fix logging settings plus a stray printlin -> debug/log