mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
SDA-2418: remove capturing all stats (#1074)
This commit is contained in:
parent
ced1c6b3da
commit
b72b67cba9
@ -160,8 +160,7 @@
|
|||||||
"react": "16.13.0",
|
"react": "16.13.0",
|
||||||
"react-dom": "16.13.0",
|
"react-dom": "16.13.0",
|
||||||
"ref-napi": "1.4.3",
|
"ref-napi": "1.4.3",
|
||||||
"shell-path": "2.1.0",
|
"shell-path": "2.1.0"
|
||||||
"systeminformation": "4.23.0"
|
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"screen-snippet": "git+https://github.com/symphonyoss/ScreenSnippet2.git#v1.0.9",
|
"screen-snippet": "git+https://github.com/symphonyoss/ScreenSnippet2.git#v1.0.9",
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { app } from 'electron';
|
import { app } from 'electron';
|
||||||
import * as os from 'os';
|
import * as os from 'os';
|
||||||
import * as si from 'systeminformation';
|
|
||||||
import { logger } from '../common/logger';
|
import { logger } from '../common/logger';
|
||||||
|
|
||||||
export class AppStats {
|
export class AppStats {
|
||||||
@ -17,7 +16,6 @@ export class AppStats {
|
|||||||
this.logAppMetrics();
|
this.logAppMetrics();
|
||||||
this.logConfigurationData();
|
this.logConfigurationData();
|
||||||
this.logAppEvents();
|
this.logAppEvents();
|
||||||
this.logAllStats();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -97,17 +95,6 @@ export class AppStats {
|
|||||||
logger.info(`stats: Chrome Version? ${process.versions.chrome}`);
|
logger.info(`stats: Chrome Version? ${process.versions.chrome}`);
|
||||||
logger.info(`stats: Electron Version? ${process.versions.electron}`);
|
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();
|
const appStats = new AppStats();
|
||||||
|
Loading…
Reference in New Issue
Block a user