Skip to content

Commit 2c3cce8

Browse files
chore: added options debug check back
1 parent d55383b commit 2c3cce8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/controllers/LogController.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ export const LogController = {
9090
functionName?: string,
9191
data?: Record<string, unknown>
9292
) {
93+
if (!OptionsController.state.debug) {
94+
return; // Logs were not stored when debug=false
95+
}
9396
const entry: LogEntry = {
9497
id: generateLogId(),
9598
timestamp: Date.now(),

0 commit comments

Comments
 (0)