misc: add timestamped trace() function (#26614)

This commit is contained in:
Frédéric Péters 2018-09-21 12:43:19 +02:00
parent f49150ce46
commit 2670e3bf25
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,7 @@
import base64
import copy
import re
import time
from quixote import get_session, get_publisher
import quixote.http_request
@ -161,3 +162,6 @@ class HTTPRequest(quixote.http_request.HTTPRequest):
@property
def META(self):
return self.environ
def trace(self, msg):
print '%.4f' % (time.time() - self.t0), msg