Get rid of console.trace instances which are slowing things down

This commit is contained in:
Robert Long 2022-09-09 14:43:53 -07:00
parent 7ec5793075
commit 9bea9312c1
3 changed files with 0 additions and 10 deletions

View File

@ -185,9 +185,6 @@ export class LogItem implements ILogItem {
* @return {[type]} [description]
*/
run<T>(callback: LogCallback<T>): T {
if (this.end !== undefined) {
console.trace("log item is finished, additional logs will likely not be recorded");
}
try {
const result = callback(this);
if (result instanceof Promise) {
@ -239,9 +236,6 @@ export class LogItem implements ILogItem {
}
child(labelOrValues: LabelOrValues, logLevel?: LogLevel, filterCreator?: FilterCreator): LogItem {
if (this.end) {
console.trace(`log item ${this.values.l} finished, additional log ${JSON.stringify(labelOrValues)} will likely not be recorded`);
}
if (!logLevel) {
logLevel = this.logLevel || LogLevel.Info;
}

View File

@ -1080,7 +1080,6 @@ export class PeerCall implements IDisposable {
// we really don't want to trigger any code in Member after this
this.options.emitUpdate = (_, __, log) => {
log.log("emitting update from PeerCall after disposal", this.logItem.level.Error);
console.trace("emitting update from PeerCall after disposal");
};
}

View File

@ -31,9 +31,6 @@ export class DOMWebRTC implements WebRTC {
}) as PeerConnection;
return new Proxy(peerConn, {
get(target, prop, receiver) {
if (prop === "close") {
console.trace("calling peerConnection.close");
}
const value = target[prop];
if (typeof value === "function") {
return value.bind(target);