Skip to content

Commit

Permalink
Debug logs added
Browse files Browse the repository at this point in the history
  • Loading branch information
antonyagustine committed May 23, 2023
1 parent 8b6f3c8 commit b62c32b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/filesystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
} from './utils'

const debug = Debug('asset-store-filesystem')
if (process.env.DEBUG === "*") debug.enabled = true;

interface IAsset {
locale: string,
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ export const getConfig = () => {
export { assetStoreInstance }

const debug = Debug('asset-store-filesystem')
if (process.env.DEBUG === '*') debug.enabled = true;

/**
* @description to start the asset connector
* @param {object} config Optional app config
Expand Down

0 comments on commit b62c32b

Please sign in to comment.