Skip to content

Commit

Permalink
fix(log): clear query log on every start
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed May 9, 2018
1 parent 7be2bec commit bcc8e8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/background/sphinx.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ const writeSphinxConfig = (path, dbPath) => {
}
}

// clean query.log because it too large and don't consist any good info
if(fs.existsSync(`${path}/query.log`))
{
fs.unlinkSync(`${path}/query.log`)
}

let isInitDb = false

if (!fs.existsSync(`${dbPath}/database`)){
Expand Down

0 comments on commit bcc8e8f

Please sign in to comment.