fix(xo-server-logs): level-sublevel → subleveldown

This commit is contained in:
Julien Fontanet 2020-02-25 10:31:42 +01:00
parent 52b956e677
commit 555b1a16da

View File

@ -4,7 +4,7 @@ import highland from 'highland'
import levelup from 'level-party'
import ndjson from 'ndjson'
import parseArgs from 'minimist'
import sublevel from 'level-sublevel'
import sublevel from 'subleveldown'
import util from 'util'
import { join as joinPath } from 'path'
// eslint-disable-next-line node/no-extraneous-import
@ -195,8 +195,9 @@ export default async function main() {
}
const db = sublevel(
levelup(`${config.datadir}/leveldb`, { valueEncoding: 'json' })
).sublevel('logs')
levelup(`${config.datadir}/leveldb`, { valueEncoding: 'json' }),
'logs'
)
return printLogs(db, args)
}