honor params in cli, honor loglevel in .env