Browse Source

Send log output to stderr

Ben Firshman 12 năm trước cách đây
mục cha
commit
6d0702e607
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      fig/cli/main.py

+ 1 - 1
fig/cli/main.py

@@ -20,7 +20,7 @@ log = logging.getLogger(__name__)
 
 
 def main():
-    console_handler = logging.StreamHandler()
+    console_handler = logging.StreamHandler(stream=sys.stderr)
     console_handler.setFormatter(logging.Formatter())
     console_handler.setLevel(logging.INFO)
     root_logger = logging.getLogger()