feat: 添加两处例程的执行log
This commit is contained in:
parent
bf6416abb0
commit
e7053c46ef
|
|
@ -513,6 +513,7 @@ class AppLoader extends types_1.AppLoader {
|
|||
async execStartRoutines() {
|
||||
const routines = this.requireSth('lib/routines/start') || [];
|
||||
for (const routine of routines) {
|
||||
console.log(`执行启动例程【${routine.name}】...`);
|
||||
if (routine.hasOwnProperty('entity')) {
|
||||
const start = Date.now();
|
||||
try {
|
||||
|
|
@ -546,6 +547,7 @@ class AppLoader extends types_1.AppLoader {
|
|||
async execStopRoutines() {
|
||||
const routines = this.requireSth('lib/routines/stop') || [];
|
||||
for (const routine of routines) {
|
||||
console.log(`执行停止例程【${routine.name}】...`);
|
||||
if (routine.hasOwnProperty('entity')) {
|
||||
const start = Date.now();
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -605,6 +605,7 @@ export class AppLoader<ED extends EntityDict & BaseEntityDict, Cxt extends Backe
|
|||
async execStartRoutines() {
|
||||
const routines: Routine<ED, keyof ED, Cxt>[] = this.requireSth('lib/routines/start') || [];
|
||||
for (const routine of routines) {
|
||||
console.log(`执行启动例程【${routine.name}】...`);
|
||||
if (routine.hasOwnProperty('entity')) {
|
||||
const start = Date.now();
|
||||
try {
|
||||
|
|
@ -640,6 +641,7 @@ export class AppLoader<ED extends EntityDict & BaseEntityDict, Cxt extends Backe
|
|||
async execStopRoutines() {
|
||||
const routines: Routine<ED, keyof ED, Cxt>[] = this.requireSth('lib/routines/stop') || [];
|
||||
for (const routine of routines) {
|
||||
console.log(`执行停止例程【${routine.name}】...`);
|
||||
if (routine.hasOwnProperty('entity')) {
|
||||
const start = Date.now();
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue