Fix a bug of getting an incorrect active log level.
Merge pull request #3231 from kjkuan/bugfix-cli-loglevel

Fix a bug of getting an incorrect active log level.