put debugging output in messages instead of output
diff --git a/xos/tosca/daemon.py b/xos/tosca/daemon.py
index 0fff6e2..dc6e057 100644
--- a/xos/tosca/daemon.py
+++ b/xos/tosca/daemon.py
@@ -35,14 +35,14 @@
try:
print "*** Run Program %s ***" % model.name
model.status = "executing"
- model.output = ""
+ model.messages = ""
model.save()
xt = XOSTosca(model.contents, parent_dir=currentdir, log_to_console=True)
xt.execute(model.owner)
- model.output = "\n".join(xt.log_msgs)
+ model.messages = "\n".join(xt.log_msgs)
model.status = "complete"
except:
- model.output = traceback.format_exc()
+ model.messages = traceback.format_exc()
model.status = "exception"
traceback.print_exc()
model.command = None
@@ -52,14 +52,14 @@
try:
print "*** Destroy Program %s ***" % model.name
model.status = "executing"
- model.output = ""
+ model.messages = ""
model.save()
xt = XOSTosca(model.contents, parent_dir=currentdir)
xt.destroy(model.owner)
- model.output = "\n".join(xt.log_msgs)
+ model.messages = "\n".join(xt.log_msgs)
model.status = "complete"
except:
- model.output = traceback.format_exc()
+ model.messages = traceback.format_exc()
model.status = "exception"
traceback.print_exc()
model.command = None