Skip to content

Commit

Permalink
Change logging to use server logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolen committed Aug 18, 2023
1 parent a964554 commit 5b94b18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libs/actions/MemoryOnlyKeys/MemoryOnlyKeys.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import Onyx from 'react-native-onyx';
import ONYXKEYS from '../../../ONYXKEYS';
import Log from '../../Log';

const memoryOnlyKeys = [ONYXKEYS.COLLECTION.REPORT, ONYXKEYS.COLLECTION.POLICY, ONYXKEYS.PERSONAL_DETAILS_LIST];

const enable = () => {
console.debug('[MemoryOnlyKeys] enabled');
Log.info('[MemoryOnlyKeys] enabled');
Onyx.set(ONYXKEYS.IS_USING_MEMORY_ONLY_KEYS, true);
Onyx.setMemoryOnlyKeys(memoryOnlyKeys);
};

const disable = () => {
console.debug('[MemoryOnlyKeys] disabled');
Log.info('[MemoryOnlyKeys] disabled');
Onyx.set(ONYXKEYS.IS_USING_MEMORY_ONLY_KEYS, false);
Onyx.setMemoryOnlyKeys([]);
};
Expand Down

0 comments on commit 5b94b18

Please sign in to comment.