Skip to content

Commit 55ee212

Browse files
committed
fix footer, add version to logs
1 parent 5cc0983 commit 55ee212

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

py_config_gs/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88

99
app_version = version('py-config-gs')
10+
1011
# Configure logging
1112
logging.basicConfig(level=logging.DEBUG, # Set the log level to DEBUG
1213
format='%(asctime)s - %(levelname)s - %(message)s')
@@ -25,6 +26,7 @@
2526

2627
# Log the SETTINGS_FILE path
2728
logger.info(f'Settings file path: {SETTINGS_FILE}')
29+
logger.info(f'App version: {app_version}')
2830

2931
# Load settings.json
3032
with open(SETTINGS_FILE, 'r') as f:

py_config_gs/templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ <h1>Welcome to the Configuration Manager</h1>
3131

3232
<!-- Footer Section -->
3333
<footer>
34-
<p>&copy; 2024 My Flask App</p>
35-
</footer>
34+
<p>&copy; 2024 PyConfig Groundstation, version: {{ version }}</p>
35+
</footer>
3636

3737
</body>
3838
</html>

0 commit comments

Comments
 (0)