I have an XML file (STAX) which i execute from command line
\[code\][root@local ~]# staf local STAX EXECUTE FILE "/root/test2.xml" ARGS "{'command':'ls'}" WAIT RETURNRESULT\[/code\]And get following output ..\[code\]Response--------{ Job ID : 57 Start Date-Time: 20130405-18:27:13 End Date-Time : 20130405-18:27:13 Status : Normal Result : 0 Job Log Errors : [] Testcase Totals: { Tests : 0 Passes: 0 Fails : 0 }}\[/code\]Script contents ..\[code\]<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE stax SYSTEM "stax.dtd"><stax><defaultcall function="runCommand"/><function name="runCommand"> <function-list-args> <function-required-arg name="command"/> </function-list-args> <try> <sequence> <script>print("This");</script> <message>'%s %s: is a: %s' % (STAXCurrentTestcase, STAXCurrentFunction, command)</message> <log>'test'</log> <return>0</return> </sequence> <catch exception="'eTerminateFunction'" var="eInfo"> <sequence> <log level="'fail'">'%s %s: Terminating function Error: %s' % (STAXCurrentTestcase, STAXCurrentFunction, eInfo)</log> <tcstatus result="'fail'">eInfo</tcstatus> <return>1</return> </sequence> </catch> </try></function></stax>\[/code\]How come none of the logging is dumped to console during or after execution?
for \[code\]<log>\[/code\], \[code\]<message>\[/code\] or the python \[code\]<script>print("This")</script>\[/code\]
\[code\][root@local ~]# staf local STAX EXECUTE FILE "/root/test2.xml" ARGS "{'command':'ls'}" WAIT RETURNRESULT\[/code\]And get following output ..\[code\]Response--------{ Job ID : 57 Start Date-Time: 20130405-18:27:13 End Date-Time : 20130405-18:27:13 Status : Normal Result : 0 Job Log Errors : [] Testcase Totals: { Tests : 0 Passes: 0 Fails : 0 }}\[/code\]Script contents ..\[code\]<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE stax SYSTEM "stax.dtd"><stax><defaultcall function="runCommand"/><function name="runCommand"> <function-list-args> <function-required-arg name="command"/> </function-list-args> <try> <sequence> <script>print("This");</script> <message>'%s %s: is a: %s' % (STAXCurrentTestcase, STAXCurrentFunction, command)</message> <log>'test'</log> <return>0</return> </sequence> <catch exception="'eTerminateFunction'" var="eInfo"> <sequence> <log level="'fail'">'%s %s: Terminating function Error: %s' % (STAXCurrentTestcase, STAXCurrentFunction, eInfo)</log> <tcstatus result="'fail'">eInfo</tcstatus> <return>1</return> </sequence> </catch> </try></function></stax>\[/code\]How come none of the logging is dumped to console during or after execution?
for \[code\]<log>\[/code\], \[code\]<message>\[/code\] or the python \[code\]<script>print("This")</script>\[/code\]