Improved logging for Ruby