Skip to content

Commit

Permalink
v3.23.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Jan 14, 2021
1 parent b96eec2 commit 86b0260
Show file tree
Hide file tree
Showing 4 changed files with 325 additions and 325 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 3.22.2 2021-01-14

* Debug option to print full error stacks regardless of logger
* Debug option to print full error stacks regardless of logger.


## 3.22.1 2020-12-10
Expand Down
4 changes: 2 additions & 2 deletions lib/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = make_logging

function flat_logger(entry) {
let opts = this.options()

var level_str = (entry.level_name + '').toUpperCase()
if (level_str.length < 5) {
level_str += '_'.repeat(5 - level_str.length)
Expand Down Expand Up @@ -122,7 +122,7 @@ function flat_logger(entry) {
]

this.private$.print.log(sb.join('\t').substring(0, entry.maxlen$ || 11111))
if(entry.err && opts.debug.print.err) {
if (entry.err && opts.debug.print.err) {
this.private$.print.err(entry.err)
}
}
Expand Down
2 changes: 1 addition & 1 deletion seneca.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const option_defaults = {
env: false,

// Regardless of logging, call `console.err` on errors
err: false
err: false,
},

// Trace action caller and place in args.caller$.
Expand Down

0 comments on commit 86b0260

Please sign in to comment.