I wonder if `raw.inspect` is expensive.. maybe add `if logger.debug?`