Skip to content

Commit c5bb322

Browse files
committed
fix: add logging for input coordinates in run_app function
1 parent b3d62a3 commit c5bb322

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci-cd.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ jobs:
3434
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
3535
needs: [test, docker]
3636
uses: ./.github/workflows/release.yaml
37+
permissions:
38+
contents: write
3739
secrets: inherit

src/sample_python_app/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
def run_app():
2323
"""Run the application."""
2424
lat, lon = weather_settings.LOCATION.latitude, weather_settings.LOCATION.longitude
25+
logger.info(f"Using input latitude: {lat}, longitude: {lon}")
2526
try:
2627
astro = fetch_astronomical_data_from_api(lat, lon)
2728
except httpx.HTTPStatusError as e:

0 commit comments

Comments
 (0)