Skip to content

Commit

Permalink
(GH-3217) Only log compiled catalogs at trace level
Browse files Browse the repository at this point in the history
Previously compiled catalogs would be logged per target at INFO level. This clogs up logs and can expose Sensitive data in catalogs. This commit moves logging of compiled catalogs to the TRACE log level only.

!bug

* **Only log compiled catalogs at trace level**
  ([#3217](#3217))

  Previously compiled catalogs would be logged per target at INFO level. This clogs up
  logs and can expose Sensitive data in catalogs. This commit moves logging of
  compiled catalogs to the TRACE log level only.
  • Loading branch information
donoghuc committed Aug 10, 2023
1 parent a308978 commit 230d8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bolt/applicator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def apply_ast(raw_ast, targets, options, plan_vars = {})
futures = targets.map do |target|
Concurrent::Future.execute(executor: @pool) do
Thread.current[:name] ||= Thread.current.name
@executor.with_node_logging("Compiling manifest block", [target]) do
@executor.with_node_logging("Compiling manifest block", [target], :trace) do
compile(target, scope)
end
end
Expand Down

0 comments on commit 230d8e7

Please sign in to comment.