rrs_upstream_email.py: enable set log level

Add logger.setLevel to enable set log level.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Yi Zhao 2018-06-01 15:00:10 +08:00 committed by Paul Eggleton
parent 09f629b997
commit c47e2af5d1

View File

@ -141,6 +141,7 @@ def main():
action="store_const", const=logging.ERROR, dest="loglevel") action="store_const", const=logging.ERROR, dest="loglevel")
options, args = parser.parse_args(sys.argv) options, args = parser.parse_args(sys.argv)
logger.setLevel(options.loglevel)
# get recipes for send email # get recipes for send email
if options.plan: if options.plan: