Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Bottle logging but keep access to DEVTOOLS ? #1573

Open
jeanbaptiste444 opened this issue Jan 8, 2025 · 1 comment
Open

Disable Bottle logging but keep access to DEVTOOLS ? #1573

jeanbaptiste444 opened this issue Jan 8, 2025 · 1 comment

Comments

@jeanbaptiste444
Copy link

Specification

  • pywebview version: 5.3.2
  • operating system: Windows 10 / Debian 12
  • web renderer: edgechromium / GTK

Description

I am using Pywebview with a Flask App. I wanted to know if it's possible to disable Bottle logging (quiet=True) but keep access to Pywebview DEVTOOLS ?

Currently, webview debug defines bottle logging status.

My main goal is to mute some endpoints or all Bottle logging but keep access to DEVTOOLS.

  • Is it possible to access Bottle logger ?
  • Or if not, is it possible to add a parameter to keep access to DEVTOOL even if debug=False ?

Practicalities

  • YES I am willing to work on this issue myself.

  • NO I am prepared to support this issue financially.

@jeanbaptiste444 jeanbaptiste444 changed the title Disable Bottle logging but keep access to DEVTOOLS Disable Bottle logging but keep access to DEVTOOLS ? Jan 8, 2025
@jeanbaptiste444
Copy link
Author

Temporary fixed by overwritting the method start_server in BottleServer class and set bottle.run(..., quiet=True).

setattr(BottleServer, "start_server", types.MethodType(start_server, BottleServer))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant