forked from ungleich-public/cdist
pass __debug to manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
272b8722c1
commit
a165585699
2 changed files with 8 additions and 2 deletions
|
@ -149,10 +149,13 @@ class Config:
|
||||||
env['__target_host'] = self.target_host
|
env['__target_host'] = self.target_host
|
||||||
env['__global'] = self.path.out_dir
|
env['__global'] = self.path.out_dir
|
||||||
|
|
||||||
|
# Submit debug flag to manifest, can be used by emulator and types
|
||||||
|
env['__debug'] = "yes"
|
||||||
|
|
||||||
# Required for recording source
|
# Required for recording source
|
||||||
env['__cdist_manifest'] = manifest
|
env['__cdist_manifest'] = manifest
|
||||||
|
|
||||||
# Required to find types
|
# Required to find types
|
||||||
env['__cdist_type_base_dir'] = self.path.type_base_dir
|
env['__cdist_type_base_dir'] = self.path.type_base_dir
|
||||||
|
|
||||||
# Other environment stuff
|
# Other environment stuff
|
||||||
|
|
|
@ -36,6 +36,9 @@ def run(argv):
|
||||||
global_dir = os.environ['__global']
|
global_dir = os.environ['__global']
|
||||||
object_source = os.environ['__cdist_manifest']
|
object_source = os.environ['__cdist_manifest']
|
||||||
|
|
||||||
|
if '__debug' in os.environ:
|
||||||
|
logging.root.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(add_help=False)
|
parser = argparse.ArgumentParser(add_help=False)
|
||||||
|
|
||||||
# Setup optional parameters
|
# Setup optional parameters
|
||||||
|
@ -134,7 +137,7 @@ def run(argv):
|
||||||
source_fd.writelines(object_source)
|
source_fd.writelines(object_source)
|
||||||
source_fd.close()
|
source_fd.close()
|
||||||
|
|
||||||
print("Finished " + type + "/" + object_id + repr(params))
|
log.debug("Finished " + type + "/" + object_id + repr(params))
|
||||||
|
|
||||||
|
|
||||||
def link(exec_path, bin_dir, type_list):
|
def link(exec_path, bin_dir, type_list):
|
||||||
|
|
Loading…
Reference in a new issue