code: def log_env(self, level, env):
          
          self.log(level, "ENVIRONMENT:")
          for k, v in env.items():
              self.log(level, "    {} = {}".format(k, pformat(v)))
docs: dump env into debug logger in readable format