mirror of
https://github.com/unraid/api.git
synced 2026-01-09 10:10:45 -06:00
chore: logging
This commit is contained in:
@@ -103,6 +103,14 @@ export class MothershipSocket extends CustomSocket {
|
||||
const logger = this.logger;
|
||||
return async function (this: WebSocketWithHeartBeat, error: any) {
|
||||
try {
|
||||
console.log({
|
||||
type: typeof error,
|
||||
error,
|
||||
keys: Object.keys(error),
|
||||
code: error.code,
|
||||
message: error.message
|
||||
});
|
||||
|
||||
const messageParts = error.split('Unexpected server response: ');
|
||||
const isHTTPError = messageParts.length !== 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user