Skip to content

Commit

Permalink
fix: possibility to set fatal level in the error itself (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
stambata authored Nov 28, 2022
1 parent 9156a92 commit 62ac8e1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"debug.node.autoAttach": "on"
"debug.node.autoAttach": "on",
"cSpell.words": [
"clonedeepwith",
"defaultsdeep",
"fluentd",
"gelf"
]
}
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
library identifier: 'jenkinsfile@master', retriever: modernSCM([
library identifier: 'jenkinsfile@gallium', retriever: modernSCM([
$class: 'GitSCMSource',
remote: 'https://github.com/softwaregroup-bg/jenkinsfile.git'
])

ut buildImage: 'softwaregroup/ut-docker'
ut buildImage: 'nexus-dev.softwaregroup.com:5000/softwaregroup/ut-gallium'
4 changes: 2 additions & 2 deletions modules/bunyan.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ function Bunyan(options) {
warn: function() {
logHandler('warn', arguments);
},
error: function() {
logHandler('error', arguments);
error: function(e) {
logHandler(e?.fatal ? 'fatal' : 'error', arguments);
},
fatal: function() {
logHandler('fatal', arguments);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"raven": "^2.6.4",
"gelf-stream": "^1.1.1",
"tap": "^16.0.0",
"ut-tools": "^6.40.4",
"ut-tools": "^6.41.5",
"winston": "^2.4.0"
},
"optionalDependencies": {
Expand Down

0 comments on commit 62ac8e1

Please sign in to comment.