Avoid constructing a debug message when not in debug mode.