encaps pformat in log messages in lambda so it's just evaluated when needed