How to run agent in debug mode? #142
-
|
As per this doc, https://vicentereig.github.io/dspy.rb/production/troubleshooting/ we need to
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The troubleshooting docs had an error - Here are your options for debug logging: 1. Tail the log file (simplest) tail -f log/development.log2. Redirect to stdout via environment variable DSPY_LOG=/dev/stdout ruby your_script.rb3. Configure debug level with stdout DSPy.configure do |config|
config.logger = Dry.Logger(:dspy, formatter: :string) do |s|
s.add_backend(level: :debug, stream: $stdout)
end
end |
Beta Was this translation helpful? Give feedback.

The troubleshooting docs had an error -
Dry::Logger::Dispatcherdoesn't have alevel=setter. I've fixed the docs. Thanks for reporting it @sivagollapalliHere are your options for debug logging:
1. Tail the log file (simplest)
2. Redirect to stdout via environment variable
3. Configure debug level with stdout