SHA256
Merge branch 'main' of https://github.com/ai5590/SHiNE-server
# Conflicts: # shine-UI/js/app.js
This commit is contained in:
@@ -1639,6 +1639,16 @@ export class AuthService {
|
||||
return response.payload || {};
|
||||
}
|
||||
|
||||
|
||||
async reportClientDebug({ runId = '', level = 'info', message = '', details = '' } = {}) {
|
||||
try {
|
||||
const response = await this.ws.request('ClientDebugLog', { runId, level, message, details }, 3000);
|
||||
return response?.status === 200;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
async reportClientError(details) {
|
||||
try {
|
||||
const response = await this.ws.request('ClientErrorLog', details || {}, 3000);
|
||||
|
||||
Reference in New Issue
Block a user