Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion files/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,12 @@ def logs_to_array logs
# skipping debug messages, we dont want them in Foreman's db
next if log.level == :debug

# skipping Puppet 7/8 messages
next if log.message =~ /^Requesting catalog from .+$/
next if log.message =~ /^Catalog compiled by .+$/

# skipping catalog summary run messages, we dont want them in Foreman's db
next if log.message =~ /^Finished catalog run in \d+.\d+ seconds$/
next if log.message =~ /^(Finished catalog run|Applied catalog) in \d+.\d+ seconds$/

# Match Foreman's slightly odd API format...
h << {
Expand Down
11 changes: 0 additions & 11 deletions spec/static_fixtures/report-format-6.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,17 +210,6 @@
},
"level": "notice"
}
},
{
"log": {
"sources": {
"source": "//slave01.rackspace.theforeman.org/Puppet"
},
"messages": {
"message": "Applied catalog in 14.26 seconds"
},
"level": "notice"
}
}
]
}
9 changes: 0 additions & 9 deletions spec/static_fixtures/report-format-6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,6 @@ logs:
time: '2017-06-28T17:28:27.282770457+00:00'
file: "/etc/puppetlabs/code/environments/production/modules/ntp/manifests/service.pp"
line: 6
- !ruby/object:Puppet::Util::Log
level: :notice
message: Applied catalog in 14.26 seconds
source: "//slave01.rackspace.theforeman.org/Puppet"
tags:
- notice
time: '2017-06-28T17:28:31.534448086+00:00'
file:
line:
catalog_uuid: e8c2c0aa-6648-4423-b4c1-a1b2b3d19653
environment: production
configuration_version: 1498670892
Expand Down