mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-05 15:44:28 +00:00
fix(sandbox): change initialization and hotreload log level to debug
This commit is contained in:
@@ -97,7 +97,7 @@ export class SandboxService {
|
|||||||
await this.provider.initialize(config, callback)
|
await this.provider.initialize(config, callback)
|
||||||
this.currentAllowedDomains = [...allowedDomains]
|
this.currentAllowedDomains = [...allowedDomains]
|
||||||
this.isInit = true
|
this.isInit = true
|
||||||
logger.info({ allowedDomains }, 'Sandbox initialized successfully')
|
logger.debug({ allowedDomains }, 'Sandbox initialized successfully')
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error({ err }, 'Failed to initialize sandbox')
|
logger.error({ err }, 'Failed to initialize sandbox')
|
||||||
throw err
|
throw err
|
||||||
@@ -131,7 +131,7 @@ export class SandboxService {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
this.currentAllowedDomains = [...incomingDomains]
|
this.currentAllowedDomains = [...incomingDomains]
|
||||||
logger.info({ incomingDomains }, 'Sandbox allowed domains hot-reloaded successfully')
|
logger.debug({ incomingDomains }, 'Sandbox allowed domains hot-reloaded successfully')
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error({ err, incomingDomains }, 'Failed to hot-reload sandbox allowed domains')
|
logger.error({ err, incomingDomains }, 'Failed to hot-reload sandbox allowed domains')
|
||||||
throw err
|
throw err
|
||||||
|
|||||||
Reference in New Issue
Block a user