Skip to content

Commit b62b4cb

Browse files
author
DaanSelen
committed
chore: add more debug lines
1 parent d8d829a commit b62b4cb

File tree

6 files changed

+6
-3
lines changed

6 files changed

+6
-3
lines changed

src/config.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ log_level = DEBUG
2525

2626
[account]
2727
username = dselen
28-
password = $2b$12$bUcVL2v0OoJnraXtx.mHsOKFRnKEf/kmewqKXHOebitDZcJviPusm
28+
password = $2b$12$LId4p4WP3N0RLFi/TjNxseA1U.yybg2bJ8ufvcbpclUxckEX6OH.y
2929
enable_totp = False
3030
totp_verified = False
31-
totp_key = CEBHHGL4HLYUDYXKTLIL34SVLXYPVHIO
31+
totp_key = NY7VFZFYIUM7FUZCDW7UMXQ7DMGGLSJU
3232

3333
[other]
3434
welcome_session = False

src/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# Read the config file (ini)
2222
ok, config_data = config.read()
2323
if not ok:
24+
log.error("failed to read the config from disk")
2425
exit(1)
2526
found, config_server = config.filter(config_data, 'SERVER')
2627

src/modules/config/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def read() -> tuple[bool, dict]:
3434

3535
ok, config_data = config_utils.read_data(candidate_path)
3636
if not ok:
37+
log.error("failed to read data from filepath")
3738
return False, {}
3839

3940
return True, config_data

src/modules/database/database.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class database():
1313
def create_session(database_config: dict) -> tuple[bool, sqlalchemy.engine.Engine | None, sqlalchemy.orm.Session | None]:
1414
ok, connection_string = database_utils.generate_connection_string(database_config)
1515
if not ok:
16+
log.error("failed to generate the connection string")
1617
return False, None, None
1718

1819
try:

src/modules/routes/locale.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def __init__(self):
2727
def get_language(self):
2828
ok, server_config = config.filter(self.wgd_config, "SERVER")
2929
if not ok:
30+
log.error("failed to filter the config in-memory")
3031
return None
3132

3233
lang = server_config.get("wgdashboard_language", "en")

src/modules/routes/routes_welcome.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def api_welcome_get_totp():
6767
if "totp_verified" not in config_account or not config_account["totp_verified"]:
6868
totp_key = pyotp.random_base32()
6969

70-
log.debug(totp_key)
7170
ok = config.update('ACCOUNT', 'totp_key', totp_key)
7271
if not ok:
7372
log.error("failed to update the key in the configuration file")

0 commit comments

Comments
 (0)