From 0f8ca4ec2f7a9c4df20cb5c7952392b008e692e3 Mon Sep 17 00:00:00 2001 From: "E.Smith" <31170571+azlm8t@users.noreply.github.com> Date: Mon, 1 Oct 2018 22:53:58 +0100 Subject: [PATCH] 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. --- support/tvhmeta | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2