xbuddy: add a flag to control cherrypy logging on screen

Add a log_screen argument in XBuddy constructor. When it is set
to false, cherrypy config will be updated with log.screen set to
false. This allows xbuddy to be used by other programs (like cros
flash) which can specifically turn off screen logging of xbuddy.

TEST=Manually tested

Change-Id: I081ca2c5c96b201aaed3dfc5651198c1a15bb218
Reviewed-on: https://chromium-review.googlesource.com/230282
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Yu-Ju Hong <yjhong@chromium.org>
Tested-by: Yiming Chen <yimingc@chromium.org>
Commit-Queue: Yiming Chen <yimingc@chromium.org>
1 file changed