Skip to content

Commit 6efbbbf

Browse files
committed
Revert some console.logs
1 parent 14420cb commit 6efbbbf

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

packages/datadog-instrumentations/src/fs.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,9 @@ function createWrapFunction (prefix = '', override = '') {
259259
const operation = name.match(/^(.+?)(Sync)?(\.native)?$/)[1]
260260

261261
return function () {
262-
console.log(`wrapFunction => function(): name: ${name}, method: ${method}, operation: ${operation}`)
263-
console.log('startChannel._stores', startChannel._stores)
264-
if (!startChannel.hasSubscribers) {
265-
console.log(`NO SUBSCRIBERS - name: ${name}, method: ${method}, operation: ${operation}`)
262+
if (!startChannel.hasSubscribers)
266263
return original.apply(this, arguments)
267-
}
268-
console.log(`HAS_SUBSCRIBERS - name: ${name}, method: ${method}, operation: ${operation}`)
264+
269265
const lastIndex = arguments.length - 1
270266
const cb = typeof arguments[lastIndex] === 'function' && arguments[lastIndex]
271267
const params = getMethodParamsRelationByPrefix(prefix)[operation]
@@ -277,7 +273,6 @@ function createWrapFunction (prefix = '', override = '') {
277273
ctx.error = error
278274
errorChannel.publish(ctx)
279275
}
280-
console.log('finishChannel.runStores(ctx, cb)')
281276
return finishChannel.runStores(ctx, cb)
282277
}
283278

@@ -288,7 +283,6 @@ function createWrapFunction (prefix = '', override = '') {
288283
}
289284

290285
return startChannel.runStores(ctx, () => {
291-
console.log(`startChannel.runStores: name: ${name}, method: ${method}, operation: ${operation}`)
292286
if (abortController.signal.aborted) {
293287
const error = abortController.signal.reason || new Error('Aborted')
294288

@@ -326,7 +320,6 @@ function createWrapFunction (prefix = '', override = '') {
326320
}
327321
)
328322
}
329-
console.log('finishChannel.runStores(ctx, () => {}): L324')
330323
finishChannel.runStores(ctx, () => {})
331324

332325
return result

packages/dd-trace/src/appsec/rasp/fs-plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class AppsecFsPlugin extends Plugin {
3333
enable () {
3434
this.addBind('apm:fs:operation:start', this._onFsOperationStart)
3535
this.addBind('apm:fs:operation:finish', this._onFsOperationFinishOrRenderEnd)
36-
this.addBind('tracing:datadog:express:response:render:start', this._onResponseRenderStart)
37-
this.addBind('tracing:datadog:express:response:render:end', this._onFsOperationFinishOrRenderEnd)
36+
// this.addBind('tracing:datadog:express:response:render:start', this._onResponseRenderStart)
37+
// this.addBind('tracing:datadog:express:response:render:end', this._onFsOperationFinishOrRenderEnd)
3838

3939
super.configure(true)
4040
}

0 commit comments

Comments
 (0)