fix(xo-server-logs): level-sublevel → subleveldown
This commit is contained in:
parent
52b956e677
commit
555b1a16da
@ -4,7 +4,7 @@ import highland from 'highland'
|
|||||||
import levelup from 'level-party'
|
import levelup from 'level-party'
|
||||||
import ndjson from 'ndjson'
|
import ndjson from 'ndjson'
|
||||||
import parseArgs from 'minimist'
|
import parseArgs from 'minimist'
|
||||||
import sublevel from 'level-sublevel'
|
import sublevel from 'subleveldown'
|
||||||
import util from 'util'
|
import util from 'util'
|
||||||
import { join as joinPath } from 'path'
|
import { join as joinPath } from 'path'
|
||||||
// eslint-disable-next-line node/no-extraneous-import
|
// eslint-disable-next-line node/no-extraneous-import
|
||||||
@ -195,8 +195,9 @@ export default async function main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const db = sublevel(
|
const db = sublevel(
|
||||||
levelup(`${config.datadir}/leveldb`, { valueEncoding: 'json' })
|
levelup(`${config.datadir}/leveldb`, { valueEncoding: 'json' }),
|
||||||
).sublevel('logs')
|
'logs'
|
||||||
|
)
|
||||||
|
|
||||||
return printLogs(db, args)
|
return printLogs(db, args)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user