Logs only in debug mode