Skip to content

Commit

Permalink
fix: makefile and debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gene-redpanda committed Jul 9, 2024
1 parent 7fbf1b8 commit 9a8049c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ integration_tests:
REDPANDA_CLIENT_SECRET=$${REDPANDA_CLIENT_SECRET} \
RUN_CLUSTER_TESTS=true \
TF_ACC=true \
TF_LOG=DEBUG \
VERSION=ign \
$(GOCMD) test -v -parallel=5 -timeout=0 ./redpanda/tests

Expand Down Expand Up @@ -112,7 +113,7 @@ test-create:
REDPANDA_CLIENT_ID="$${REDPANDA_CLIENT_ID}" \
REDPANDA_CLIENT_SECRET="$${REDPANDA_CLIENT_SECRET}" \
REDPANDA_CLOUD_ENVIRONMENT="$${REDPANDA_CLOUD_ENVIRONMENT}" \
export TF_LOG=DEBUG \
TF_LOG=DEBUG \
TF_INSECURE_SKIP_PROVIDER_VERIFICATION=true
terraform init && \
terraform apply -parallelism 10 -auto-approve
Expand Down
2 changes: 1 addition & 1 deletion redpanda/cloud/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func SpawnConn(url string, authToken string) (*grpc.ClientConn, error) {
func(ctx context.Context, method string, req any, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
start := time.Now()
err := invoker(ctx, method, req, reply, cc, opts...)
tflog.Debug(ctx, "method: %s, duration: %v, error: %v\n", map[string]any{
tflog.Debug(ctx, "Redpanda API call", map[string]any{
"method": method,
"duration": time.Since(start),
"error": err,
Expand Down

0 comments on commit 9a8049c

Please sign in to comment.