pass env to log