From 7729ece27eb0813c55f07619d3f28fccc287d230 Mon Sep 17 00:00:00 2001 From: "Anthony D. Mays" Date: Mon, 5 May 2025 18:39:14 +0000 Subject: [PATCH] chore: updates java config to downgrade logging to WARN; updates run command for simpler output Signed-off-by: Anthony D. Mays --- lesson_26/README.md | 2 +- .../api/java/api_app/src/main/resources/application.yml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lesson_26/README.md b/lesson_26/README.md index c515729cf..3b9eae3df 100644 --- a/lesson_26/README.md +++ b/lesson_26/README.md @@ -36,7 +36,7 @@ We are continuing to build atop the foundation of our library app. For this assi #### Running the API -You can run the server using the usual `./gradlew run` command from the `api/java` directory. If you want to test that the server is running correctly, you can use `curl` like so: +You can run the server using the usual `./gradlew run --console=plain` command from the `api/java` directory. If you want to test that the server is running correctly, you can use `curl` like so: ```bash curl http://localhost:3001/items | json_pp diff --git a/lesson_26/api/java/api_app/src/main/resources/application.yml b/lesson_26/api/java/api_app/src/main/resources/application.yml index bc26497dc..5ab5f5b78 100644 --- a/lesson_26/api/java/api_app/src/main/resources/application.yml +++ b/lesson_26/api/java/api_app/src/main/resources/application.yml @@ -6,4 +6,8 @@ spring: generate-ddl: true datasource: url: jdbc:sqlite::resource:sqlite/data.db - driver-class-name: org.sqlite.JDBC \ No newline at end of file + driver-class-name: org.sqlite.JDBC +logging: + level: + root: WARN + org.springframework: WARN \ No newline at end of file