File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/gatsby-cli/src/reporter Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import {
23
23
registerAdditionalDiagnosticOutputHandler ,
24
24
AdditionalDiagnosticsOutputHandler ,
25
25
} from "./redux/diagnostics"
26
+ import { isTruthy } from "gatsby-core-utils/is-truthy"
26
27
27
28
const errorFormatter = getErrorFormatter ( )
28
29
const tracer = globalTracer ( )
@@ -35,7 +36,7 @@ export interface IActivityArgs {
35
36
tags ?: { [ key : string ] : any }
36
37
}
37
38
38
- let isVerbose = false
39
+ let isVerbose = isTruthy ( process . env . GATSBY_REPORTER_ISVERBOSE )
39
40
40
41
function isLogIntentMessage ( msg : any ) : msg is ILogIntent {
41
42
return msg && msg . type === `LOG_INTENT`
@@ -74,6 +75,7 @@ class Reporter {
74
75
*/
75
76
setVerbose = ( _isVerbose : boolean = true ) : void => {
76
77
isVerbose = _isVerbose
78
+ process . env . GATSBY_REPORTER_ISVERBOSE = isVerbose ? `1` : `0`
77
79
}
78
80
79
81
/**
You can’t perform that action at this time.
0 commit comments