Make log spam more quiet
This commit is contained in:
parent
a0049f956d
commit
343ce3b502
1 changed files with 6 additions and 1 deletions
|
@ -516,7 +516,12 @@ export class Algorithm extends EventEmitter {
|
||||||
if (isNullOrUndefined(rooms)) throw new Error(`Array of rooms cannot be null`);
|
if (isNullOrUndefined(rooms)) throw new Error(`Array of rooms cannot be null`);
|
||||||
if (!this.sortAlgorithms) throw new Error(`Cannot set known rooms without a tag sorting map`);
|
if (!this.sortAlgorithms) throw new Error(`Cannot set known rooms without a tag sorting map`);
|
||||||
|
|
||||||
|
if (!this.updatesInhibited) {
|
||||||
|
// We only log this if we're expecting to be publishing updates, which means that
|
||||||
|
// this could be an unexpected invocation. If we're inhibited, then this is probably
|
||||||
|
// an intentional invocation.
|
||||||
console.warn("Resetting known rooms, initiating regeneration");
|
console.warn("Resetting known rooms, initiating regeneration");
|
||||||
|
}
|
||||||
|
|
||||||
// Before we go any further we need to clear (but remember) the sticky room to
|
// Before we go any further we need to clear (but remember) the sticky room to
|
||||||
// avoid accidentally duplicating it in the list.
|
// avoid accidentally duplicating it in the list.
|
||||||
|
|
Loading…
Reference in a new issue