Fixed bug with how logging level is configured.