Skip to content

Commit a3f8ccd

Browse files
author
Chris Connelly
committed
chore: allow RUST_LOG to be overridden
This just uses the `export ... ?= ...` approach to use the value from the parent environment if set, or a default if not.
1 parent 1b86b33 commit a3f8ccd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export PGUSER ?= postgres
66
export PGPASSWORD ?= password
77
export PGDATABASE ?= sample
88
export DATABASE_URL ?= postgres://$(PGUSER):$(PGPASSWORD)@$(PGHOST):$(PGPORT)/$(PGDATABASE)
9+
export RUST_LOG ?= rust_graphql_sample=debug,tower_http=debug
910

1011
prepare-db: start-db
1112
@sqlx database create
@@ -18,4 +19,4 @@ stop-db:
1819
@scripts/stop-db.sh
1920

2021
run: start-db prepare-db
21-
@RUST_LOG=rust_graphql_sample=debug,tower_http=debug cargo run
22+
@cargo run

0 commit comments

Comments
 (0)