fix(all): Locale in Audio is dynamic.
This commit is contained in:
parent
03f94d0931
commit
2305f81b28
1 changed files with 9 additions and 9 deletions
|
@ -113,7 +113,7 @@ export class GBServer {
|
||||||
process.on('uncaughtException', (err, p) => {
|
process.on('uncaughtException', (err, p) => {
|
||||||
if (err !== null) {
|
if (err !== null) {
|
||||||
err = err['e'] ? err['e'] : err;
|
err = err['e'] ? err['e'] : err;
|
||||||
const msg = `${err['code']?err['code']:''} ${err.message?err.message:''} ${err['description']?err['description']:''}`
|
const msg = `${err['code'] ? err['code'] : ''} ${err?.['response']?.['data'] ? err?.['response']?.['data']: ''} ${err.message ? err.message : ''} ${err['description'] ? err['description'] : ''}`
|
||||||
GBLog.error(`UNCAUGHT_EXCEPTION: ${err.toString()} ${err['stack'] ? '\n' + err['stack'] : ''} ${msg}`);
|
GBLog.error(`UNCAUGHT_EXCEPTION: ${err.toString()} ${err['stack'] ? '\n' + err['stack'] : ''} ${msg}`);
|
||||||
} else {
|
} else {
|
||||||
GBLog.error('UNCAUGHT_EXCEPTION: Unknown error (err is null)');
|
GBLog.error('UNCAUGHT_EXCEPTION: Unknown error (err is null)');
|
||||||
|
@ -187,7 +187,7 @@ export class GBServer {
|
||||||
await deployer.deployPackages(core, server, GBServer.globals.appPackages);
|
await deployer.deployPackages(core, server, GBServer.globals.appPackages);
|
||||||
await core.syncDatabaseStructure();
|
await core.syncDatabaseStructure();
|
||||||
|
|
||||||
if (runOnce){
|
if (runOnce) {
|
||||||
await core.saveInstance(GBServer.globals.bootInstance);
|
await core.saveInstance(GBServer.globals.bootInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -345,7 +345,7 @@ export class GBServer {
|
||||||
|
|
||||||
// Serve the swagger file
|
// Serve the swagger file
|
||||||
app.get(`/${SWAGGER_FILE_NAME}`, (req, res) => {
|
app.get(`/${SWAGGER_FILE_NAME}`, (req, res) => {
|
||||||
res.sendFile(path.join(process.env.PWD,SWAGGER_FILE_NAME));
|
res.sendFile(path.join(process.env.PWD, SWAGGER_FILE_NAME));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue