Add logger.setLevel to enable set log level.
Signed-off-by: Yi Zhao <[email protected]>
---
rrs/tools/rrs_upstream_email.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/rrs/tools/rrs_upstream_email.py b/rrs/tools/rrs_upstream_email.py
index cdc352d..8ef0b3c 100755
--- a/rrs/tools/rrs_upstream_email.py
+++ b/rrs/tools/rrs_upstream_email.py
@@ -141,6 +141,7 @@ def main():
action="store_const", const=logging.ERROR, dest="loglevel")
options, args = parser.parse_args(sys.argv)
+ logger.setLevel(options.loglevel)
# get recipes for send email
if options.plan:
--
2.7.4
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto