Made all internal logging debug-only