MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / formatParam

Function formatParam

lib/tracker/request-logger.js:272–282  ·  view source on GitHub ↗
(value, maxLength)

Source from the content-addressed store, hash-verified

270}
271
272function formatParam(value, maxLength) {
273 if (value === undefined) {
274 return 'undefined';
275 }
276
277 if (value === null) {
278 return 'null';
279 }
280
281 return value.toString().substr(0, maxLength);
282}
283
284function getPayloadSizes(requestLength, responseLength) {
285 let message = 'request size ' + formatSize(requestLength);

Callers 2

paramStringifierFunction · 0.85
getParametersInfoFunction · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected