Skip to content

Commit 28764b4

Browse files
committed
example: enable logging
Add env_logger to the dependencies for pointercrate-example, so that logs are printed. Signed-off-by: stadust <43299462+stadust@users.noreply.github.com>
1 parent 3a198f7 commit 28764b4

File tree

3 files changed

+135
-1
lines changed

3 files changed

+135
-1
lines changed

Cargo.lock

Lines changed: 131 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pointercrate-example/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ edition.workspace = true
88

99
[dependencies]
1010
dotenv = "0.15.0"
11+
env_logger = "0.11.8"
1112
maud = "0.27.0"
1213
pointercrate-core = { version = "0.1.0", path = "../pointercrate-core" }
1314
pointercrate-core-api = { version = "0.1.0", path = "../pointercrate-core-api" }
@@ -21,4 +22,4 @@ pointercrate-user-pages = { version = "0.1.0", path = "../pointercrate-user-page
2122
rocket = "0.5.1"
2223

2324
[features]
24-
oauth2 = ["pointercrate-user-api/oauth2", "pointercrate-user-pages/oauth2"]
25+
oauth2 = ["pointercrate-user-api/oauth2", "pointercrate-user-pages/oauth2"]

pointercrate-example/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ async fn rocket() -> _ {
5353
// Load the configuration from your .env file
5454
dotenv::dotenv().unwrap();
5555

56+
env_logger::init();
57+
5658
// Initialize a database connection pool to the database specified by the
5759
// DATABASE_URL environment variable
5860
let pool = PointercratePool::init().await;

0 commit comments

Comments
 (0)