Skip to content

Commit

Permalink
removed sentry logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartondock committed May 22, 2022
1 parent 1aa2361 commit abf17bd
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 451 deletions.
411 changes: 11 additions & 400 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
"build:dist": "rimraf dist && npm run build:main && npm run build:renderer",
"build:win": "electron-builder --win --ia32 --x64",
"build:linux": "electron-builder --linux --ia32 --x64",
"build:linuxdir": "electron-builder --linux --dir",
"build:flatpak": "cp LICENSE release/linux-unpacked/ && cp electron-version release/linux-unpacked/version && electron-installer-flatpak --src release/linux-unpacked --dest release/ --arch x64 --config flatconf.json",
"build:docker": "electron-builder --linux --win --ia32 --x64 --publish onTagOrDraft",
"build:mac": "electron-builder --mac --ia32 --x64"
"build:mac": "electron-builder --mac --ia32 --x64",
"build:linuxdir": "electron-builder --linux --x64 --dir && cp electron-version release/linux-unpacked/version && cp LICENSE release/linux-unpacked/",
"build:flatpak": "electron-installer-flatpak --src release/linux-unpacked --dest release/ --arch x64 --config flatconf.json",
"build:docker": "electron-builder --linux --win --ia32 --x64 --publish onTagOrDraft"
},
"dependencies": {
"@angular/animations": "^5.2.9",
Expand All @@ -87,8 +87,6 @@
"@angular/platform-browser-dynamic": "^5.2.9",
"@angular/router": "^5.2.9",
"@node-steam/vdf": "^2.0.1",
"@sentry/electron": "^2.5.4",
"@sentry/webpack-plugin": "^1.18.3",
"ajv": "^6.4.0",
"appid": "^1.0.3",
"async": "^2.6.4",
Expand Down Expand Up @@ -149,7 +147,6 @@
"@types/minimatch": "^3.0.3",
"@types/node": "12.12.46",
"@types/rangy": "0.0.32",
"@types/which": "^2.0.1",
"@types/winreg": "^1.2.31",
"angular2-template-loader": "^0.6.2",
"autoprefixer": "^10.4.0",
Expand Down
1 change: 0 additions & 1 deletion src/lib/file-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import * as _ from 'lodash';
import * as path from 'path';
import * as fs from 'fs-extra';
import * as os from 'os';
import * as Sentry from '@sentry/electron';
import { getPath, getArgs, getStartDir } from 'windows-shortcuts-ps';
import * as xdgparse from 'xdg-parse';

Expand Down
2 changes: 0 additions & 2 deletions src/lib/parsers/amazon-games.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import * as os from "os";
import * as sqlite from "better-sqlite3";
import * as path from 'path';
import { parse } from 'yaml';
import * as Sentry from '@sentry/electron';

export class AmazonGamesParser implements GenericParser {

Expand Down Expand Up @@ -86,7 +85,6 @@ export class AmazonGamesParser implements GenericParser {

resolve({executableLocation: launcherMode ? amazonGamesExe : null, success: games, failed:[]});
} catch(err) {
Sentry.captureException(err);
reject(this.lang.errors.fatalError__i.interpolate({error: err}));
}
})
Expand Down
2 changes: 0 additions & 2 deletions src/lib/parsers/epic.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import * as os from "os";
import * as genericParser from '@node-steam/vdf';
import * as path from "path";
import { globPromise } from "../helpers/glob/promise"
import * as Sentry from '@sentry/electron';


export class EpicParser implements GenericParser {
Expand Down Expand Up @@ -86,7 +85,6 @@ export class EpicParser implements GenericParser {
}
resolve(parsedData);
}).catch((err)=>{
Sentry.captureException(err);
reject(this.lang.errors.fatalError__i.interpolate({error: err}));
});
})
Expand Down
2 changes: 0 additions & 2 deletions src/lib/parsers/exe.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import * as _ from "lodash";
import * as fs from "fs-extra";
import * as genericParser from '@node-steam/vdf';
import * as path from "path";
import * as Sentry from '@sentry/electron';

export class SteamParser implements GenericParser {

Expand Down Expand Up @@ -36,7 +35,6 @@ export class SteamParser implements GenericParser {
}
resolve(parsedData);
}).catch((err)=>{
Sentry.captureException(err);
reject(this.lang.errors.fatalError__i.interpolate({error: err}));
});
})
Expand Down
2 changes: 0 additions & 2 deletions src/lib/parsers/gog-galaxy.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import * as _ from "lodash";
import * as fs from "fs-extra";
import * as genericParser from '@node-steam/vdf';
import * as path from "path";
import * as Sentry from '@sentry/electron';
import * as os from "os";
import * as json from "../helpers/json";
import * as sqlite from "better-sqlite3";
Expand Down Expand Up @@ -94,7 +93,6 @@ export class GOGParser implements GenericParser {
}
resolve(parsedData);
}).catch((err)=>{
Sentry.captureException(err);
reject(this.lang.errors.fatalError__i.interpolate({error: err}));
});
})
Expand Down
2 changes: 0 additions & 2 deletions src/lib/parsers/itch-io.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { APP } from '../../variables';
import * as fs from "fs-extra";
import * as os from "os";
import * as sqlite from "better-sqlite3";
import * as Sentry from '@sentry/electron';

export class ItchIoParser implements GenericParser {

Expand Down Expand Up @@ -79,7 +78,6 @@ export class ItchIoParser implements GenericParser {
.filter((gameDetails:any) => gameDetails !== null);
resolve({success: games, failed:[]});
} catch(err) {
Sentry.captureException(err);
reject(this.lang.errors.fatalError__i.interpolate({error: err}));
}
})
Expand Down
3 changes: 0 additions & 3 deletions src/lib/parsers/manual.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import * as _ from "lodash";
import * as fs from "fs-extra";
import * as genericParser from '@node-steam/vdf';
import * as path from "path";
import * as Sentry from '@sentry/electron';
import { stat } from 'original-fs';

export class ManualParser implements GenericParser {
Expand Down Expand Up @@ -47,14 +46,12 @@ export class ManualParser implements GenericParser {
}
}
catch (err) {
Sentry.captureException(err);
parsedData.failed.push(filePath);
}
}
}
return parsedData;
}).catch((err) => {
Sentry.captureException(err);
return undefined;
});
}
Expand Down
2 changes: 0 additions & 2 deletions src/lib/parsers/origin.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import * as _ from "lodash";
import * as fs from "fs-extra";
import * as genericParser from '@node-steam/vdf';
import * as path from "path";
import * as Sentry from '@sentry/electron';

export class SteamParser implements GenericParser {

Expand Down Expand Up @@ -36,7 +35,6 @@ export class SteamParser implements GenericParser {
}
resolve(parsedData);
}).catch((err)=>{
Sentry.captureException(err);
reject(this.lang.errors.fatalError__i.interpolate({error: err}));
});
})
Expand Down
2 changes: 0 additions & 2 deletions src/lib/parsers/steam.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import * as genericParser from '@node-steam/vdf';
import * as path from "path";
import * as appid from "appid";
import * as bvdf from "binary-vdf";
import * as Sentry from '@sentry/electron';
import * as json from "../helpers/json";

export class SteamParser implements GenericParser {
Expand Down Expand Up @@ -72,7 +71,6 @@ export class SteamParser implements GenericParser {
resolve(parsedData);
})
.catch((err)=>{
Sentry.captureException(err);
reject(this.lang.errors.fatalError__i.interpolate({error: err}));
});

Expand Down
2 changes: 0 additions & 2 deletions src/lib/parsers/uplay.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import * as Registry from "winreg";
import * as genericParser from '@node-steam/vdf';
import * as path from "path";
import * as os from "os";
import * as Sentry from '@sentry/electron';

export class UPlayParser implements GenericParser {

Expand Down Expand Up @@ -203,7 +202,6 @@ export class UPlayParser implements GenericParser {
}
resolve(parsedData);
}).catch((err)=>{
Sentry.captureException(err);
reject(this.lang.errors.fatalError__i.interpolate({error: err}));
});
})
Expand Down
4 changes: 0 additions & 4 deletions src/main/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import * as paths from "../paths";
import * as path from 'path';
import * as url from 'url';

// Sentry setup
import * as Sentry from "@sentry/electron";
Sentry.init({dsn: 'https://[email protected]/5273341'});


// Window setup
const windowStateKeeper = require('electron-window-state');
Expand Down
4 changes: 0 additions & 4 deletions src/renderer/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ import './styles/themes.global.scss';
import './styles/fonts.global.scss';
import './styles/main.global.scss';

// Sentry setup
import * as Sentry from "@sentry/electron";
Sentry.init({dsn: 'https://[email protected]/5273341'});

if (process.env.NODE_ENV === 'production') {
enableProdMode();
}
Expand Down
3 changes: 0 additions & 3 deletions src/renderer/services/preview.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import * as ids from '../../lib/helpers/steam';
import * as _ from "lodash";
import * as fs from "fs-extra";
import * as path from "path";
import * as Sentry from "@sentry/electron";
@Injectable()

export class PreviewService {
Expand Down Expand Up @@ -212,7 +211,6 @@ export class PreviewService {
this.previewVariables.listIsBeingSaved = false;
this.loggerService.error(this.lang.errors.fatalError,{ invokeAlert: true, alertTimeout: 3000 });
this.loggerService.error(this.lang.errors.fatalError__i.interpolate({error: failureError}));
Sentry.captureException(failureError);
return false;
})
return chain;
Expand Down Expand Up @@ -501,7 +499,6 @@ export class PreviewService {
this.loggerService.error(error);
this.previewVariables.listIsBeingGenerated = false;
this.previewDataChanged.next();
Sentry.captureException(error);
});
}
}
Expand Down
13 changes: 0 additions & 13 deletions webpack/renderer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as HtmlWebpackPlugin from 'html-webpack-plugin';
import * as MiniCssExtractPlugin from 'mini-css-extract-plugin';
import * as SentryCliPlugin from '@sentry/webpack-plugin';
import { merge } from 'webpack-merge';
import { Configuration } from 'webpack';

Expand Down Expand Up @@ -112,18 +111,6 @@ let productionConfig: Configuration = {
bail: false
};

if(process.env.SENTRY_AUTH) {
clientConfig.plugins.push(
new SentryCliPlugin({
include: '../src',
org: 'steam-rom-manager',
project: 'steam-rom-manager',
release: require('child_process').execSync('git rev-parse --short HEAD').toString().trim(),
authToken: process.env.SENTRY_AUTH
})
)
}

if (process.env.NODE_ENV === 'production')
module.exports = merge(clientConfig, productionConfig);
else module.exports = merge(clientConfig, developmentConfig);

0 comments on commit abf17bd

Please sign in to comment.