[vlc-commits] python bindings: configure logging module when running standalone

Olivier Aubert git at videolan.org
Tue Oct 10 19:14:43 CEST 2017


vlc/python | branch: master | Olivier Aubert <contact at olivieraubert.net> | Thu Sep 28 22:09:15 2017 +0200| [8cc1400dbd33a795134b7ffc64d332bc135bf067] | committer: Olivier Aubert

python bindings: configure logging module when running standalone

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=8cc1400dbd33a795134b7ffc64d332bc135bf067
---

 generated/2.2/vlc.py | 4 ++--
 generated/vlc.py     | 4 ++--
 generator/footer.py  | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/generated/2.2/vlc.py b/generated/2.2/vlc.py
index 19f57d4..360aedd 100644
--- a/generated/2.2/vlc.py
+++ b/generated/2.2/vlc.py
@@ -53,7 +53,7 @@ import logging
 logger = logging.getLogger(__name__)
 
 __version__ = "2.2.6"
-build_date  = "Thu Sep 28 21:14:55 2017 - 2.2.6"
+build_date  = "Thu Sep 28 22:09:06 2017 - 2.2.6"
 
 # The libvlc doc states that filenames are expected to be in UTF8, do
 # not rely on sys.getfilesystemencoding() which will be confused,
@@ -6953,7 +6953,7 @@ def debug_callback(event, *args, **kwds):
 
 
 if __name__ == '__main__':
-
+    logging.basicConfig(level=logging.DEBUG)
     try:
         from msvcrt import getch
     except ImportError:
diff --git a/generated/vlc.py b/generated/vlc.py
index f63263c..6f02bd4 100644
--- a/generated/vlc.py
+++ b/generated/vlc.py
@@ -53,7 +53,7 @@ import logging
 logger = logging.getLogger(__name__)
 
 __version__ = "N/A"
-build_date  = "Thu Sep 28 21:14:55 2017"
+build_date  = "Thu Sep 28 22:09:06 2017"
 
 # The libvlc doc states that filenames are expected to be in UTF8, do
 # not rely on sys.getfilesystemencoding() which will be confused,
@@ -8250,7 +8250,7 @@ def debug_callback(event, *args, **kwds):
 
 
 if __name__ == '__main__':
-
+    logging.basicConfig(level=logging.DEBUG)
     try:
         from msvcrt import getch
     except ImportError:
diff --git a/generator/footer.py b/generator/footer.py
index 3fd883e..5668ed2 100644
--- a/generator/footer.py
+++ b/generator/footer.py
@@ -71,7 +71,7 @@ def debug_callback(event, *args, **kwds):
 
 
 if __name__ == '__main__':
-
+    logging.basicConfig(level=logging.DEBUG)
     try:
         from msvcrt import getch
     except ImportError:



More information about the vlc-commits mailing list