summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package/dnf
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-12-15 15:22:32 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-12-15 15:22:32 -0800
commit4c87730bd6f35cb969a2b177c7e85beb9e9b6030 (patch)
tree0aa9eea86e5c258ffff6f10c45e33d06710e8044 /lib/chef/provider/package/dnf
parent7b39f6dbfe18653123dbc9459d145dcf7f752479 (diff)
downloadchef-4c87730bd6f35cb969a2b177c7e85beb9e9b6030.tar.gz
add some debug logging
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/package/dnf')
-rw-r--r--lib/chef/provider/package/dnf/python_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/provider/package/dnf/python_helper.rb b/lib/chef/provider/package/dnf/python_helper.rb
index ff5f66cb17..936c381371 100644
--- a/lib/chef/provider/package/dnf/python_helper.rb
+++ b/lib/chef/provider/package/dnf/python_helper.rb
@@ -87,9 +87,12 @@ class Chef
def query(action, provides, version = nil, arch = nil)
with_helper do
json = build_query(action, provides, version, arch)
+ Chef::Log.debug "sending '#{json}' to python helper"
stdin.syswrite json + "\n"
- output = stdout.sysread(4096)
+ output = stdout.sysread(4096).chomp
+ Chef::Log.debug "got '#{output}' from python helper"
version = parse_response(output)
+ Chef::Log.debug "parsed #{version} from python helper"
version
end
end