Fixed broken debug-mode logging option