From 37b966b848815f1636138f2f09ca5e7de792eb7c Mon Sep 17 00:00:00 2001 From: maxdml Date: Wed, 11 Dec 2024 14:22:59 -0800 Subject: [PATCH] add debug entries --- src/dbos-runtime/runtime.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dbos-runtime/runtime.ts b/src/dbos-runtime/runtime.ts index 87fdb4cf..c388a060 100644 --- a/src/dbos-runtime/runtime.ts +++ b/src/dbos-runtime/runtime.ts @@ -89,6 +89,7 @@ export class DBOSRuntime { if (fs.existsSync(operations)) { const operationsURL = pathToFileURL(operations).href; exports = (await import(operationsURL)) as Promise; + DBOS.globalLogger?.debug(`Loaded operations from ${operations}`); } else { throw new DBOSFailLoadOperationsError(`Failed to load operations from the entrypoint ${entrypoint}`); } @@ -96,6 +97,7 @@ export class DBOSRuntime { for (const key in exports) { if (isObject(exports[key])) { classes.push(exports[key] as object); + DBOS.globalLogger?.debug(`Loaded class ${key}`); } } allClasses.push(...classes);