Skip to content

Commit 070e947

Browse files
ensured that test cases produce a log file
1 parent 2ff7422 commit 070e947

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
env:
2323
GOPROXY: "https://proxy.golang.org"
2424
TF_ACC: true
25+
DYNATRACE_DEBUG: true
2526
DYNATRACE_ENV_URL: ${{ secrets.DYNATRACE_ENV_URL }}
2627
DYNATRACE_API_TOKEN: ${{ secrets.DYNATRACE_API_TOKEN }}
2728
run: go test -v .

config/config.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ package config
1919

2020
import (
2121
"context"
22+
"os"
2223

2324
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
2425
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
2526
)
2627

2728
// HTTPVerbose if set to `true` terraform-provider-dynatrace.log will contain request and response payload
28-
const HTTPVerbose = false
29+
var HTTPVerbose = (os.Getenv("DYNATRACE_DEBUG") == "true")
2930

3031
// ProviderConfiguration contains the initialized API clients to communicate with the Dynatrace API
3132
type ProviderConfiguration struct {

0 commit comments

Comments
 (0)