(TK-118) Fix lack of console logging with --debug

Fix an issue wherein nothing was logged to the console when the
--debug flag was set.