Log more data.

remotes/origin/os_explorer_devuan_fix
Darko Poljak 7 years ago
parent 8883196efb
commit 764ea49904
  1. 3
      cdist/config.py
  2. 3
      cdist/core/manifest.py
  3. 3
      cdist/exec/local.py
  4. 3
      cdist/exec/remote.py

3
cdist/config.py vendored

@ -331,7 +331,8 @@ class Config(object):
host, remote_copy))
target_host = ipaddr.resolve_target_addresses(host)
log.debug("target_host: {}".format(target_host))
log.debug("target_host for host \"{}\": {}".format(
host, target_host))
local = cdist.exec.local.Local(
target_host=target_host,

@ -179,7 +179,8 @@ class Manifest(object):
cdist_object.cdist_type.manifest_path)
message_prefix = cdist_object.name
if os.path.isfile(type_manifest):
self.log.verbose("Running type manifest " + type_manifest)
self.log.verbose("Running type manifest %s for object %s",
type_manifest, cdist_object.name)
self.local.run_script(type_manifest,
env=self.env_type_manifest(cdist_object),
message_prefix=message_prefix,

@ -232,7 +232,8 @@ class Local(object):
if save_output:
output, errout = exec_util.call_get_output(
command, env=env, stderr=stderr)
self.log.trace("Local stdout: {}".format(output))
self.log.trace("Command: {}; local stdout: {}".format(
command, output))
# Currently, stderr is not captured.
# self.log.trace("Local stderr: {}".format(errout))
if return_output:

@ -309,7 +309,8 @@ class Remote(object):
stderr = None
output, errout = exec_util.call_get_output(
command, env=os_environ, stderr=stderr)
self.log.trace("Remote stdout: {}".format(output))
self.log.trace("Command: {}; remote stdout: {}".format(
command, output))
# Currently, stderr is not captured.
# self.log.trace("Remote stderr: {}".format(errout))
if return_output:

Loading…
Cancel
Save