1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-28 04:04:58 +03:00

feat(server): add isProduction data to telemetry

This commit is contained in:
louistiti 2023-04-13 00:41:02 +08:00
parent 03acb35e84
commit 2678f6f04a
No known key found for this signature in database
GPG Key ID: 0A1C3B043E70C77D
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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,