File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,12 @@ import {
31
31
} from './utils'
32
32
33
33
const debug = Debug ( 'asset-store-filesystem' )
34
- if ( process . env . DEBUG === "*" ) debug . enabled = true ;
34
+ if (
35
+ process . env . DEBUG === "*" ||
36
+ ( process . env . DEBUG || "" ) . includes ( "asset-store-filesystem" )
37
+ ) {
38
+ debug . enabled = true ;
39
+ }
35
40
36
41
interface IAsset {
37
42
locale : string ,
Original file line number Diff line number Diff line change @@ -110,7 +110,12 @@ export const getConfig = () => {
110
110
export { assetStoreInstance }
111
111
112
112
const debug = Debug ( 'asset-store-filesystem' )
113
- if ( process . env . DEBUG === '*' ) debug . enabled = true ;
113
+ if (
114
+ process . env . DEBUG === "*" ||
115
+ ( process . env . DEBUG || "" ) . includes ( "asset-store-filesystem" )
116
+ ) {
117
+ debug . enabled = true ;
118
+ }
114
119
115
120
/**
116
121
* @description to start the asset connector
You can’t perform that action at this time.
0 commit comments