]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
python: Need to send log messages to stdout not stderr.
authorE.Smith <31170571+azlm8t@users.noreply.github.com>
Mon, 1 Oct 2018 21:53:58 +0000 (22:53 +0100)
committerperexg <perex@perex.cz>
Tue, 2 Oct 2018 14:05:03 +0000 (16:05 +0200)
If we log to stderr then Tvheadend thinks they are error messages
and logs them as error instead of info.

support/tvhmeta

index 98e810e4b39e6f5eeb12223c08d6d1c3d508fc5a..727a29b962ddcaf654114002a967a47f55736277 100755 (executable)
@@ -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