Skip to content

Commit

Permalink
fix(kea): log via localstorage toggle (#20299)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra authored Feb 13, 2024
1 parent 9cebae3 commit 2270d09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/initKea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ export function initKea({ routerHistory, routerLocation, beforePlugins }: InitKe
waitForPlugin,
]

if (window.JS_KEA_VERBOSE_LOGGING) {
// To enable logging, run localStorage.setItem("debug", true) in the console
if (window.JS_KEA_VERBOSE_LOGGING || ('localStorage' in window && window.localStorage.getItem('debug'))) {
plugins.push(loggerPlugin)
}

Expand Down

0 comments on commit 2270d09

Please sign in to comment.