[英]How to debug a Ohai plugin?
What is the best way to debug an Ohai plugin on chef. 在厨师上调试Ohai插件的最佳方法是什么。 'ohai' command gets the data for all the plugins. 'ohai'命令获取所有插件的数据。 Is there a command to debug a single Ohai plugin? 是否有调试单个Ohai插件的命令?
You can run just your plugin via ohai $pluginname
on the command line. 您可以在命令行上通过ohai $pluginname
运行您的插件。 You can also use -l debug
to turn up the logging level. 您也可以使用-l debug
来提高日志记录级别。 From inside your code, use Ohai::Log.debug('your message')
. 从代码内部,使用Ohai::Log.debug('your message')
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.