#545 added env var for logging level.