Skip to content

Commit

Permalink
removed console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanrahic committed Jul 23, 2020
1 parent 0e5a495 commit 2c79a38
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/plugins/input-filter/kubernetesContainerd.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,8 @@ function parseK8sFileName (sourceName) {
}

module.exports = function (context, config, data, callback) {
console.log('debug 1:', data)

try {
const sections = data.split(containerdSplitRegexp)
console.log('debug 2:', sections)
console.log('debug 3:', sections.length)

if (sections && sections.length === 6) {
const k8sInfo = parseK8sFileName(context.sourceName)
Expand All @@ -77,12 +73,6 @@ module.exports = function (context, config, data, callback) {
const streamFlag = sections[3]
const logLine = sections[4]

console.log('debug 4: k8sInfo', k8sInfo)
console.log('debug 5: timestamp', timestamp)
console.log('debug 6: streamName', streamName)
console.log('debug 7: streamFlag', streamFlag)
console.log('debug 8: logLine', logLine)

if (timestamp && streamName && streamFlag) {
k8sInfo['@timestamp'] = new Date(timestamp)
k8sInfo.streamName = streamName
Expand Down

0 comments on commit 2c79a38

Please sign in to comment.