移除日志输出

pull/1583/head
lyswhut 2023-08-09 14:37:54 +08:00
parent 7c5969e580
commit 0fc1de9f29
1 changed files with 2 additions and 2 deletions

View File

@ -25,13 +25,13 @@ export const init = (lxDataPath: string): boolean | null => {
db = new Database(databasePath, { db = new Database(databasePath, {
fileMustExist: true, fileMustExist: true,
nativeBinding, nativeBinding,
verbose: process.env.NODE_ENV !== 'production' ? console.log : undefined, // verbose: process.env.NODE_ENV !== 'production' ? console.log : undefined,
}) })
} catch (error) { } catch (error) {
console.log(error) console.log(error)
db = new Database(databasePath, { db = new Database(databasePath, {
nativeBinding, nativeBinding,
verbose: process.env.NODE_ENV !== 'production' ? console.log : undefined, // verbose: process.env.NODE_ENV !== 'production' ? console.log : undefined,
}) })
initTables(db) initTables(db)
dbFileExists = false dbFileExists = false