SDA-2418: remove capturing all stats (#1074)

This commit is contained in:
Vishwas Shashidhar 2020-09-18 12:02:23 +05:30 committed by GitHub
parent ced1c6b3da
commit b72b67cba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 15 deletions

View File

@ -160,8 +160,7 @@
"react": "16.13.0",
"react-dom": "16.13.0",
"ref-napi": "1.4.3",
"shell-path": "2.1.0",
"systeminformation": "4.23.0"
"shell-path": "2.1.0"
},
"optionalDependencies": {
"screen-snippet": "git+https://github.com/symphonyoss/ScreenSnippet2.git#v1.0.9",

View File

@ -1,6 +1,5 @@
import { app } from 'electron';
import * as os from 'os';
import * as si from 'systeminformation';
import { logger } from '../common/logger';
export class AppStats {
@ -17,7 +16,6 @@ export class AppStats {
this.logAppMetrics();
this.logConfigurationData();
this.logAppEvents();
this.logAllStats();
}
/**
@ -97,17 +95,6 @@ export class AppStats {
logger.info(`stats: Chrome Version? ${process.versions.chrome}`);
logger.info(`stats: Electron Version? ${process.versions.electron}`);
}
/**
* Log all system statistics
*/
private async logAllStats() {
try {
logger.info(`All Data: ${JSON.stringify(await si.getAllData())}`);
} catch (e) {
logger.error(`Error gathering all data: ${e}`);
}
}
}
const appStats = new AppStats();