mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
16 lines
549 B
JavaScript
16 lines
549 B
JavaScript
import Debug from 'debug'
|
|
const debugCypher = Debug('human-connection:neo4j:cypher')
|
|
const debugStats = Debug('human-connection:neo4j:stats')
|
|
|
|
export default function log(response) {
|
|
const { statement, counters, resultConsumedAfter, resultAvailableAfter } = response.summary
|
|
const { text, parameters } = statement
|
|
debugCypher('%s', text)
|
|
debugCypher('%o', parameters)
|
|
debugStats('%o', counters)
|
|
debugStats('%o', {
|
|
resultConsumedAfter: resultConsumedAfter.toNumber(),
|
|
resultAvailableAfter: resultAvailableAfter.toNumber(),
|
|
})
|
|
}
|