fix(core): Enhanced debugging and improved dependency tracking
This commit is contained in:
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartcontext',
|
||||
version: '2.1.6',
|
||||
version: '2.1.7',
|
||||
description: 'A module providing advanced asynchronous context management to enrich logs with context and manage scope effectively in Node.js applications.'
|
||||
}
|
||||
|
@ -1 +1,2 @@
|
||||
export * from './logcontext.classes.asynccontext.js';
|
||||
export * from './logcontext.classes.asyncstore.js';
|
@ -16,7 +16,7 @@ export class AsyncStore {
|
||||
* Logs debug info if process.env.DEBUG is set.
|
||||
*/
|
||||
private logDebug(functionName: string, before: Record<string, any>, after: Record<string, any>) {
|
||||
if (process.env.DEBUG) {
|
||||
if (typeof process !== 'undefined' && process.env && process.env.DEBUG) {
|
||||
console.log(`Store ID: ${this.id}`);
|
||||
console.log(`Function: ${functionName}`);
|
||||
console.log('--- Before ---');
|
||||
|
Reference in New Issue
Block a user