Slack messaging #169
No reviewers
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
Osprey
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
resilience
Tom's Wishlist
type: bug
type: discussion
type: error handling
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/spee.ch#169
Loading…
Reference in a new issue
No description provided.
Delete branch "slack-messaging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
added
winston-slack-webhook
npm package and configured to send spee.ch logs to slack.both are configurable in the
/config/production.json
fileIs this WIP or actually needs review?
@kauffj review if you have any input on it. It's not central to key spee.ch functionality, but necessary for monitoring status.
Notes.
Also: how user-friendly is this setup if someone doesn't want to use Slack? Is this all disabled by default and out of the way if someone forks this project?
@ -4,0 +4,4 @@
function useObjectPropertiesIfNoKeys (err) {
if (Object.keys(err).length === 0) {
let newErrorObject = {};
Object.getOwnPropertyNames(err).forEach((key) => {
When is there a non-enumerable property being passed that this is required?
@ -42,2 +42,3 @@
"winston": "^2.3.1"
"winston": "^2.3.1",
"winston-slack-webhook": "billbitt/winston-slack-webhook"
},
should this be billbitt?
@ -4,0 +4,4 @@
function useObjectPropertiesIfNoKeys (err) {
if (Object.keys(err).length === 0) {
let newErrorObject = {};
Object.getOwnPropertyNames(err).forEach((key) => {
for errors created by node (e.g.
new Error('error message')
) the stack and message are non-enumerable@ -42,2 +42,3 @@
"winston": "^2.3.1"
"winston": "^2.3.1",
"winston-slack-webhook": "billbitt/winston-slack-webhook"
},
I made my own fork to fix an issue with the package, and submitted a PR to the main package. The PR was accepted, so will update this to point to main package in next update.