Skip to content

Commit

Permalink
fix missing tags in extra logs sources
Browse files Browse the repository at this point in the history
  • Loading branch information
NouemanKHAL committed Jul 4, 2023
1 parent 748e8b7 commit 8ea77b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/scripts/create_logs_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def sanitize(tags_env_var, separator)

if !tags_list.empty?
tags_list = tags_list.uniq
config["logs"][0]["tags"] = tags_list
config["logs"].each { |conf| conf["tags"] = tags_list }
end

else
puts "ERROR: `LOGS_CONFIG` must be set in order to collect logs. For more info, see: https://github.com/DataDog/datadog-cloudfoundry-buildpack#log-collection"
exit(1)
Expand All @@ -68,4 +68,4 @@ def sanitize(tags_env_var, separator)
end
rescue Exception => e
puts "Could not write to log file #{e.backtrace}"
end
end

0 comments on commit 8ea77b1

Please sign in to comment.