mirror of
https://github.com/leon-ai/leon.git
synced 2024-11-30 19:07:39 +03:00
feat(server): add isProduction data to telemetry
This commit is contained in:
parent
03acb35e84
commit
2678f6f04a
@ -186,8 +186,6 @@ export default class NLU {
|
||||
return resolve(null)
|
||||
}
|
||||
|
||||
// this.sendLog()
|
||||
|
||||
if (intent === 'None') {
|
||||
const fallback = this.fallback(
|
||||
langs[LangHelper.getLongCode(locale)].fallbacks
|
||||
|
@ -16,6 +16,7 @@ import {
|
||||
IS_TELEMETRY_ENABLED,
|
||||
INSTANCE_ID,
|
||||
IS_DEVELOPMENT_ENV,
|
||||
IS_PRODUCTION_ENV,
|
||||
LANG,
|
||||
LEON_VERSION,
|
||||
PYTHON_BRIDGE_VERSION,
|
||||
@ -83,6 +84,7 @@ export class Telemetry {
|
||||
await this.axios.post('/on-start', {
|
||||
instanceID: this.instanceID,
|
||||
data: {
|
||||
isProduction: IS_PRODUCTION_ENV,
|
||||
isOnline: true,
|
||||
language: LANG,
|
||||
sttProvider: STT_PROVIDER,
|
||||
|
Loading…
Reference in New Issue
Block a user