fix: don't log debug messages if debugging is off