Skip to content

Commit dbf0fe1

Browse files
committed
Unconditionally log request timings.
The logs aren't exactly verbose at the moment, which can make it a bit annoying to debug submit issues, so let's make them a bit more verbose to help! Change-Id: I4d098dc63f1522c72f899c78fbed9f990fa579a7
1 parent f36f71b commit dbf0fe1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lnt/server/ui/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,11 @@ def get_testsuite(self):
119119

120120
def close(self):
121121
t = self.elapsed_time()
122+
elapsed_str = "Request {} took {}s".format(self.url, t)
122123
if t > 10:
123-
logger.warning("Request {} took {}s".format(self.url, t))
124+
logger.warning(elapsed_str)
125+
else:
126+
logger.info(elapsed_str)
124127
db = getattr(self, 'db', None)
125128
if db is not None:
126129
db.close()

0 commit comments

Comments
 (0)