feat: 添加两处例程的执行log

This commit is contained in:
QCQCQC@Debian 2025-12-10 10:54:39 +08:00
parent bf6416abb0
commit e7053c46ef
2 changed files with 4 additions and 0 deletions

View File

@ -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 {

View File

@ -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 {