예제 #1
0
 def testDumperLog(self):
     from Products.LongRequestLogger.dumper import Dumper
     dumper = Dumper()
     # check the dumper will log what we expect when called
     dumper()
     check_log(str(self.loghandler))
예제 #2
0
 def testRequestFormating(self):
     from Products.LongRequestLogger.dumper import Dumper
     dumper = Dumper()
     request = self.makeRequest('/foo/bar')
     check_request_formating(dumper.format_request(request))
예제 #3
0
 def testDumperFormat(self):
     from Products.LongRequestLogger.dumper import Dumper
     dumper = Dumper()
     check_dump(dumper.format_thread())
예제 #4
0
 def callable():
     dumper = Dumper()
     frame = sys._current_frames()[dumper.thread_id]
     return dumper.extract_request(frame)
예제 #5
0
 def callable():
     dumper = Dumper()
     return dumper.extract_request(dumper.get_top_thread_frame())