Example #1
0
 def startTrace (self):
   try:
     from foam.core.tracer import Tracer
     self._log.info("Tracing enabled")
     Tracer.enable()
     return jsonify(None)
   except Exception, e:
     self._log.exception("Exception")
     return jsonify(None, code = 2, msg  = traceback.format_exc())
Example #2
0
 def startTrace(self):
     try:
         from foam.core.tracer import Tracer
         self._log.info("Tracing enabled")
         Tracer.enable()
         return jsonify(None)
     except Exception, e:
         self._log.exception("Exception")
         return jsonify(None, code=2, msg=traceback.format_exc())
Example #3
0
 def stopTrace (self):
   try:
     from foam.core.tracer import Tracer
     path = Tracer.disable()
     self._log.info("Tracing disabled")
     return jsonify({"output-path" : path})
   except Exception, e:
     self._log.exception("Exception")
     return jsonify(None, code = 2, msg  = traceback.format_exc())
Example #4
0
 def stopTrace(self):
     try:
         from foam.core.tracer import Tracer
         path = Tracer.disable()
         self._log.info("Tracing disabled")
         return jsonify({"output-path": path})
     except Exception, e:
         self._log.exception("Exception")
         return jsonify(None, code=2, msg=traceback.format_exc())