Log sqlite3 warnings

This commit is contained in:
Fedor Indutny 2023-01-18 14:12:33 -08:00 committed by GitHub
parent 02aa0c1282
commit c6e184016b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 6 deletions

View file

@ -89,7 +89,7 @@
"@indutny/sneequals": "3.2.0",
"@popperjs/core": "2.11.6",
"@react-spring/web": "9.5.5",
"@signalapp/better-sqlite3": "8.0.4",
"@signalapp/better-sqlite3": "8.1.0",
"@signalapp/libsignal-client": "0.21.1",
"@signalapp/ringrtc": "2.23.0",
"@types/fabric": "4.5.3",

View file

@ -500,6 +500,10 @@ let globalInstanceRenderer: Database | undefined;
let databaseFilePath: string | undefined;
let indexedDBPath: string | undefined;
SQL.setLogHandler((code, value) => {
logger.warn(`Database log code=${code}: ${value}`);
});
async function initialize({
configDir,
key,
@ -4156,7 +4160,7 @@ async function getInstalledStickerPacks(): Promise<Array<StickerPackType>> {
SELECT *
FROM sticker_packs
WHERE
status IS "installed" OR
status IS 'installed' OR
storageID IS NOT NULL
ORDER BY id ASC
`

View file

@ -2154,10 +2154,10 @@
"@react-spring/shared" "~9.5.5"
"@react-spring/types" "~9.5.5"
"@signalapp/better-sqlite3@8.0.4":
version "8.0.4"
resolved "https://registry.yarnpkg.com/@signalapp/better-sqlite3/-/better-sqlite3-8.0.4.tgz#53ed2074634b69e83116573b26ae1d927c4aab22"
integrity sha512-VCels5YMEDOr74fEW9nc2H9cVBosOPE75g+OOxDoa5nslABl+Cy6GkPGMUa3lwz/Mt5OaV8CAnLE9r3fdhVh1g==
"@signalapp/better-sqlite3@8.1.0":
version "8.1.0"
resolved "https://registry.yarnpkg.com/@signalapp/better-sqlite3/-/better-sqlite3-8.1.0.tgz#6ddbb759e4bbd572b343dc0e740836bb5c8edf0d"
integrity sha512-3KRDCfrlvoLYuCQ0MzcCtnzVaaivvejz6/XjCzV3tbECzH8SIc1PBASEMHSy4nAeqjY8MpETIwScW1613kFJiA==
dependencies:
bindings "^1.5.0"
tar "^6.1.0"