Added manual sentry error reporting

This commit is contained in:
Mitchell McCaffrey
2020-10-27 10:26:55 +11:00
parent f096043975
commit d9cd5f78cc
6 changed files with 22 additions and 7 deletions

View File

@@ -3,6 +3,7 @@ import { encode, decode } from "@msgpack/msgpack";
import shortid from "shortid";
import blobToBuffer from "../helpers/blobToBuffer";
import { logError } from "../helpers/logging";
// Limit buffer size to 16kb to avoid issues with chrome packet size
// http://viblast.com/blog/2015/2/5/webrtc-data-channel-message-size/
@@ -78,7 +79,7 @@ class Connection extends SimplePeer {
}
}
} catch (error) {
console.error(error);
logError(error);
}
}