Only show warnings when debug is on