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

@ -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
`