user6378152
user6378152

Reputation: 277

Chef logs with test kitchen

I am using test kitchen and has a depandant cookbook that my cook book is using.

The dependant cookbook has a resource which has a log-


Chef::Log.fatal("Fetching the md5 for #{file_name} at #{uri} resulted in an error #{response.code}")

When I converge my cookbook, I don't see this log. What can i do to see this log.

I used below command for converging- kitchen converge -l debug.

Upvotes: 3

Views: 730

Answers (1)

coderanger
coderanger

Reputation: 54211

kitchen -l debug used to work but now that only sets the log level for Kitchen, not Chef. You need to add the log level to your kitchen config:

provisioner:
  name: whatever
  log_level: debug

Upvotes: 3

Related Questions