diff options
Diffstat (limited to 'extension/background.js')
-rw-r--r-- | extension/background.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extension/background.js b/extension/background.js index 72cfa73..1b2b5cc 100644 --- a/extension/background.js +++ b/extension/background.js @@ -160,6 +160,7 @@ ws.onmessage = async function(event) { const req = JSON.parse(event.data); let response = { op: req.op, error: unix.EIO }; + console.time(req.op + ':' + req.path); try { if (req.op === 'getattr') { response = { @@ -195,13 +196,14 @@ ws.onmessage = async function(event) { op: 'release' }; } - } catch (e) { response = { op: req.op, error: e instanceof UnixError ? e.error : unix.EIO } } + console.timeEnd(req.op + ':' + req.path); + response.id = req.id; ws.send(JSON.stringify(response)); }; |