mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-24 23:22:38 +08:00
chore: Remove telemetry debug logging (no-changelog) (#20875)
This commit is contained in:
@@ -24,11 +24,6 @@ export class PostHogClient {
|
||||
this.postHog = new PostHog(posthogConfig.apiKey, {
|
||||
host: posthogConfig.apiHost,
|
||||
});
|
||||
|
||||
const logLevel = this.globalConfig.logging.level;
|
||||
if (logLevel === 'debug') {
|
||||
this.postHog.debug(true);
|
||||
}
|
||||
}
|
||||
|
||||
async stop(): Promise<void> {
|
||||
|
||||
@@ -51,18 +51,12 @@ export class Telemetry {
|
||||
config: { key, proxy, sourceConfig },
|
||||
} = telemetrySettings;
|
||||
|
||||
const settingsStore = useSettingsStore();
|
||||
const rootStore = useRootStore();
|
||||
|
||||
const logLevel = settingsStore.logLevel;
|
||||
|
||||
const logging = logLevel === 'debug' ? { logLevel: 'DEBUG' } : {};
|
||||
|
||||
this.initRudderStack(key, proxy, {
|
||||
integrations: { All: false },
|
||||
loadIntegration: false,
|
||||
configUrl: sourceConfig,
|
||||
...logging,
|
||||
});
|
||||
|
||||
this.identify(instanceId, userId, versionCli, projectId);
|
||||
|
||||
Reference in New Issue
Block a user