logging on DEBUG level

Allow logging for debugging purposes