AdguardTeam / AdGuardVPNExtension

AdGuard VPN Chrome and Firefox extension
https://adguard-vpn.com/
GNU General Public License v3.0
86 stars 19 forks source link

Add an option to the context menu to enable debug-level logging #119

Closed ameshkov closed 1 year ago

ameshkov commented 1 year ago

Issue Details

Currently, the extension writes quite a lot of logs and saves them to the chrome.storage.

The reasoning for that is that the service worker lives for a short time and it's hard to troubleshoot issues because of that, console.log is lost when the service worker dies.

On the other hand, using storage for storing logs is not ideal by itself and we'd better avoid it.

Proposed solution

  1. Introduce an option to enable "Debug-level logging" (via the context menu, same way we do it with exporting logs)
  2. Do not write logs to the storage unless this option is enabled.

Alternative solution

No response