mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Get rid of console.trace instances which are slowing things down
This commit is contained in:
parent
7ec5793075
commit
9bea9312c1
@ -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;
|
||||
}
|
||||
|
@ -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");
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user