compact: false
This commit is contained in:
parent
d84a5767bf
commit
d803ec3e3e
|
@ -76,7 +76,7 @@ export default class Logger {
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
args.push(inspect(data, {
|
args.push(inspect(data, {
|
||||||
depth: Infinity,
|
depth: Infinity,
|
||||||
compact: true,
|
compact: false,
|
||||||
breakLength: Infinity,
|
breakLength: Infinity,
|
||||||
colors: true,
|
colors: true,
|
||||||
showHidden: false,
|
showHidden: false,
|
||||||
|
|
|
@ -70,14 +70,7 @@ function getJobInfo(job: Bull.Job | undefined, increment = false): string {
|
||||||
|
|
||||||
function renderError(e: Error): any {
|
function renderError(e: Error): any {
|
||||||
if (e) { // 何故かeがundefinedで来ることがある
|
if (e) { // 何故かeがundefinedで来ることがある
|
||||||
return {
|
return e;
|
||||||
...Object.getOwnPropertyNames(e).reduce((acc, key) => {
|
|
||||||
//@ts-expect-error Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Error'.
|
|
||||||
acc[key] = e[key];
|
|
||||||
return acc;
|
|
||||||
}, {} as Record<string, any>),
|
|
||||||
stack: e.stack?.split('\n').map(s => s.trim()),
|
|
||||||
};
|
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
stack: '?',
|
stack: '?',
|
||||||
|
|
Loading…
Reference in a new issue