From: E.Smith <31170571+azlm8t@users.noreply.github.com> Date: Mon, 1 Oct 2018 21:53:58 +0000 (+0100) Subject: python: Need to send log messages to stdout not stderr. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f8ca4ec2f7a9c4df20cb5c7952392b008e692e3;p=thirdparty%2Ftvheadend.git python: Need to send log messages to stdout not stderr. If we log to stderr then Tvheadend thinks they are error messages and logs them as error instead of info. --- diff --git a/support/tvhmeta b/support/tvhmeta index 98e810e4b..727a29b96 100755 --- a/support/tvhmeta +++ b/support/tvhmeta @@ -377,7 +377,7 @@ So for "tv_meta_tmdb" we would have "tmdb-key", "tmdb-user", etc. tvhmeta.fetch_and_persist_artwork(opts.uuid, opts.force_refresh, opts.modules_movie, opts.modules_tv) try: - logging.basicConfig(level=logging.INFO, format='%(asctime)s:%(levelname)s:%(module)s:%(lineno)d:%(message)s') + logging.basicConfig(level=logging.INFO, format='%(asctime)s:%(levelname)s:%(module)s:%(lineno)d:%(message)s', stream=sys.stdout) # argv[0] is program name so don't pass that as args process(sys.argv[1:]) except KeyboardInterrupt: pass