Skip to content

Commit

Permalink
Merge pull request #4 from firstandthird/update-deps
Browse files Browse the repository at this point in the history
update deps, remove sentry
  • Loading branch information
orthagonal authored Jun 10, 2019
2 parents 724d5a5 + a946ff1 commit be58fcd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 33 deletions.
10 changes: 0 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ module.exports = (overrides) => {
enabled: enabledReporters.includes('console')
}
},
sentry: {
reporter: require('logr-sentry'),
options: {
environment: process.env.NODE_ENV || 'development',
enabled: process.env.SENTRY_DSN ? true : false,
dsn: process.env.SENTRY_DSN,
logger: process.env.SENTRY_LOGGER ? process.env.SENTRY_LOGGER : 'logr',
filter: process.env.LOGR_SENTRY_FILTER ? process.env.LOGR_SENTRY_FILTER.split(',') : ['error']
}
},
slack: {
reporter: require('logr-slack'),
options: {
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,20 @@
"cov": "tap test/*.test.js --cov --coverage-report=lcov"
},
"dependencies": {
"aug": "^2.0.1",
"aug": "^3.0.1",
"logr": "^2.16.0",
"logr-console-color": "^1.4.0",
"logr-flat": "^3.2.2",
"logr-json": "^0.1.0",
"logr-logfmt": "^1.1.3",
"logr-logfmt": "^1.2.1",
"logr-reporter-bell": "0.0.1",
"logr-sentry": "^1.1.0",
"logr-slack": "^1.2.0"
"logr-slack": "^2.0.0"
},
"devDependencies": {
"eslint": "^5.16.0",
"eslint-config-firstandthird": "^4.3.0",
"eslint-plugin-import": "^2.17.2",
"tap": "^13.1.2"
"eslint-plugin-import": "^2.17.3",
"tap": "^14.2.2"
},
"keywords": [
"logr",
Expand Down
17 changes: 0 additions & 17 deletions test/reporters.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,6 @@ test('reporter - use env var to enable bell', (t) => {
delete process.env.LOGR;
});

test('SENTRY_DSN and LOGR_SENTRY_FILTER', (t) => {
process.env.SENTRY_DSN = 'https://key@localhost:8080/dummy';
process.env.LOGR_SENTRY_FILTER = 'debug,error,info';
const logs = [];
const log = logrAll({
environment: 'test',
logger: 'logr-test',
logger(msg) {
logs.push(msg);
},
});
log(['debug'], { value: 'hi' });
t.end();
delete process.env.SENTRY_DSN;
delete process.env.LOGR_SENTRY_FILTER;
});

test('SLACK_HOOK', (t) => {
process.env.SLACK_HOOK = 'https://key@localhost:8080/dummy';
process.env.LOGR_SLACK_FILTER = 'debug,error,info';
Expand Down

0 comments on commit be58fcd

Please sign in to comment.