log_level :info
log_location STDOUT
node_name "test"
client_key "C:/Python27/Lib/site"
validation_key "/nonexist"
chef_server_url ""我有一个knife.rb文件,它将客户端密钥暴露给输出,我希望日志记录停止以防止这种情况发生。有没有办法将这个日志位置设置为空?
发布于 2021-06-12 16:20:34
正如您所看到的,您正在使用STDOUT ruby predefined global variable,将其与File::NULL进行切换可能会起到作用。
以下是一个未经测试的示例
log_location File.open(File::NULL, "w")https://stackoverflow.com/questions/67928111
复制相似问题