mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
fix(logging): don't spam empty error events
This commit is contained in:
parent
ec78831a81
commit
126b382da1
1 changed files with 6 additions and 4 deletions
|
|
@ -34,10 +34,12 @@ export function setUpLogging () { // eslint-disable-line import/prefer-default-e
|
|||
console.error('Component where it occurred:', vm);
|
||||
console.error('Info:', info);
|
||||
|
||||
_LTracker.push({
|
||||
err,
|
||||
info,
|
||||
});
|
||||
if (err && Object.keys(err).length) {
|
||||
_LTracker.push({
|
||||
err,
|
||||
info,
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
/* eslint-enable no-console */
|
||||
|
|
|
|||
Loading…
Reference in a new issue