|
@@ -740,7 +740,7 @@ export class GameService implements OnModuleInit {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
- this.logger.error(error.message, error.stack, 'RUN')
|
|
|
|
|
|
|
+ this.logger.error('runError: ' + error.message, error.stack, 'RUN')
|
|
|
}
|
|
}
|
|
|
this.logger.log('停止运行')
|
|
this.logger.log('停止运行')
|
|
|
if (resolve) resolve()
|
|
if (resolve) resolve()
|
|
@@ -819,7 +819,7 @@ export class GameService implements OnModuleInit {
|
|
|
return i as PlotOption
|
|
return i as PlotOption
|
|
|
})
|
|
})
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
- this.logger.error(error)
|
|
|
|
|
|
|
+ this.logger.error('createOptionsError: ' + error.message, error.stack, 'CREATE_OPTIONS')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -837,7 +837,7 @@ export class GameService implements OnModuleInit {
|
|
|
charactor.danmuUserId = c.danmuUserId
|
|
charactor.danmuUserId = c.danmuUserId
|
|
|
return charactor
|
|
return charactor
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
- this.logger.error(error)
|
|
|
|
|
|
|
+ this.logger.error('createCharactorError: ' + error.message, error.stack, 'CREATE_CHARACTOR')
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
this.logger.log(`没有找到弹幕`)
|
|
this.logger.log(`没有找到弹幕`)
|
|
@@ -925,7 +925,7 @@ export class GameService implements OnModuleInit {
|
|
|
const output = await parser.parse(response.content.replace("'", '"'))
|
|
const output = await parser.parse(response.content.replace("'", '"'))
|
|
|
return output as Charactor
|
|
return output as Charactor
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
- this.logger.error(error)
|
|
|
|
|
|
|
+ this.logger.error('createNewCharactorError: ' + error.message, error.stack, 'CREATE_NEW_CHARACTOR')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
throw new InternalServerErrorException('无法生成新角色')
|
|
throw new InternalServerErrorException('无法生成新角色')
|
|
@@ -963,7 +963,7 @@ export class GameService implements OnModuleInit {
|
|
|
const output = await parser.parse(response.content)
|
|
const output = await parser.parse(response.content)
|
|
|
return output
|
|
return output
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
- this.logger.error(error)
|
|
|
|
|
|
|
+ this.logger.error('modifyHpError: ' + error.message, error.stack, 'MODIFY_HP')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
throw new InternalServerErrorException('无法生成HP调整值')
|
|
throw new InternalServerErrorException('无法生成HP调整值')
|