mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 08:30:39 +00:00
chore: add better logging to broadcast connections (#2169)
* fix: await fetching app cache on init * chore: add better logging to broadcast connections
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
const { MINUTE } = require('@heyputer/putility').libs.time;
|
||||
const { origin_from_url } = require('../../util/urlutil');
|
||||
const { DB_READ } = require('../../services/database/consts');
|
||||
const BaseService = require('../../services/BaseService');
|
||||
|
||||
@@ -123,15 +123,13 @@ class CLink extends BaseLink {
|
||||
});
|
||||
});
|
||||
socket.on('connect_error', e => {
|
||||
this.log.info('connection error', {
|
||||
console.error('connection error', {
|
||||
address,
|
||||
message: e.message,
|
||||
e: e,
|
||||
});
|
||||
});
|
||||
socket.on('error', e => {
|
||||
this.log.info('error', {
|
||||
message: e.message,
|
||||
});
|
||||
console.error(e);
|
||||
});
|
||||
socket.on('message', data => {
|
||||
if ( this.state.on_message ) {
|
||||
|
||||
Reference in New Issue
Block a user