mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
web: add logging about persistence type
This commit is contained in:
@@ -24,7 +24,7 @@ import {
|
||||
initializeFeatureChecks,
|
||||
isFeatureSupported
|
||||
} from "./utils/feature-check";
|
||||
import { initializeLogger } from "./utils/logger";
|
||||
import { initializeLogger, logger } from "./utils/logger";
|
||||
import { shouldShowWrapped } from "./utils/should-show-wrapped";
|
||||
|
||||
type Route<TProps = null> = {
|
||||
@@ -198,6 +198,10 @@ export async function init() {
|
||||
? ("memory" as const)
|
||||
: ("db" as const);
|
||||
|
||||
logger.info(
|
||||
`Initializing key store with persistence: ${persistence} for path: ${path}`
|
||||
);
|
||||
|
||||
return { Component, path, props: route.props, persistence };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user