mirror of
https://github.com/Andre-Bzk/twitch4steamdeck.git
synced 2026-11-15 15:43:08 +01:00
feat: add file logging toggle and logout confirmation
File logging defaulted to always-on meant the log grew silently on every run with no way to turn it off. Changing the default to error-only and exposing the toggle in Settings lets users opt in only when debugging. The logout button previously triggered immediately without warning, making accidental logouts unrecoverable without re-running the device code flow. A confirmation step (Ja/Nein, gamepad-navigable) prevents that.
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ import { getHlsCacheEnabled } from './prefs/hlsCachePref'
|
||||
import log from 'electron-log/main'
|
||||
|
||||
log.initialize()
|
||||
log.transports.file.level = 'info'
|
||||
log.transports.file.level = 'error'
|
||||
log.transports.console.level = 'debug'
|
||||
|
||||
const isDev = !app.isPackaged
|
||||
|
||||
Reference in New Issue
Block a user