mirror of
https://github.com/leon-ai/leon.git
synced 2025-01-03 06:06:06 +03:00
feat(server): add execution time
This commit is contained in:
parent
b7d496e6d6
commit
38226ca84e
@ -266,7 +266,10 @@ server.handleOnConnection = (socket) => {
|
||||
|
||||
const utterance = data.value
|
||||
try {
|
||||
LogHelper.time('Utterance processed in')
|
||||
await provider.nlu.process(utterance)
|
||||
LogHelper.title('Execution Time')
|
||||
LogHelper.timeEnd('Utterance processed in')
|
||||
} catch (e) {
|
||||
/* */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user