Show More
@@ -323,7 +323,7 b' def dispatch(req):' | |||||
323 | ret = -1 |
|
323 | ret = -1 | |
324 | finally: |
|
324 | finally: | |
325 | duration = util.timer() - starttime |
|
325 | duration = util.timer() - starttime | |
326 | req.ui.flush() |
|
326 | req.ui.flush() # record blocked times | |
327 | if req.ui.logblockedtimes: |
|
327 | if req.ui.logblockedtimes: | |
328 | req.ui._blockedtimes[b'command_duration'] = duration * 1000 |
|
328 | req.ui._blockedtimes[b'command_duration'] = duration * 1000 | |
329 | req.ui.log( |
|
329 | req.ui.log( | |
@@ -346,6 +346,8 b' def dispatch(req):' | |||||
346 | req._runexithandlers() |
|
346 | req._runexithandlers() | |
347 | except: # exiting, so no re-raises |
|
347 | except: # exiting, so no re-raises | |
348 | ret = ret or -1 |
|
348 | ret = ret or -1 | |
|
349 | # do flush again since ui.log() and exit handlers may write to ui | |||
|
350 | req.ui.flush() | |||
349 | return ret |
|
351 | return ret | |
350 |
|
352 | |||
351 |
|
353 |
General Comments 0
You need to be logged in to leave comments.
Login now