diff options
| author | karnigen <karnigen@gmail.com> | 2024-05-03 01:34:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-03 01:34:58 +0200 |
| commit | bf5c2dfd67fac98868f86276504715ecfe1c369a (patch) | |
| tree | 3b6bd611f452156fab48201fe7c868536dcb3e2d /lib/extensions/print_pdf.py | |
| parent | ad2914284e8ef5f59c410018415dbb8d574586f8 (diff) | |
Kgn/logging revamp (#2720)
* update config files
* rebase after electron remove
* added toml to requirements
* logging update
* Unified use of the TOML format instead of INI [no ci]
* Unified use of the TOML format instead of INI [no ci]
* moving debug*.py to debug dir, moving some part for debugger [no ci]
* use of alternate logging in some cases
* updated debug logger [no ci]
* logging update
* updated notes
* updated notes about logging
* style check
Diffstat (limited to 'lib/extensions/print_pdf.py')
| -rw-r--r-- | lib/extensions/print_pdf.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/extensions/print_pdf.py b/lib/extensions/print_pdf.py index 6d850ccb..640a168b 100644 --- a/lib/extensions/print_pdf.py +++ b/lib/extensions/print_pdf.py @@ -4,7 +4,6 @@ # Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details. import json -import logging import os import socket import sys @@ -249,9 +248,6 @@ class PrintPreviewServer(Thread): debug.log(f"exception in watcher {sys.exc_info()}") pass - def disable_logging(self): - logging.getLogger('werkzeug').setLevel(logging.ERROR) - # https://github.com/aluo-x/Learning_Neural_Acoustic_Fields/blob/master/train.py # https://github.com/pytorch/pytorch/issues/71029 def find_free_port(self): @@ -260,8 +256,6 @@ class PrintPreviewServer(Thread): return s.getsockname()[1] def run(self): - self.disable_logging() - self.host = "127.0.0.1" self.port = self.find_free_port() # exporting the port number for languages to work |
