bjorn-hommel
commited on
Commit
•
3ef6ab6
1
Parent(s):
83e54ee
test for debugging
Browse files- demo_section.py +3 -4
demo_section.py
CHANGED
@@ -26,10 +26,7 @@ def load_credentials():
|
|
26 |
}
|
27 |
credentials_dict.update(secret)
|
28 |
return credentials_dict
|
29 |
-
except Exception as e:
|
30 |
-
logging.error(f"private_key_id: {os.environ.get('private_key_id')}")
|
31 |
-
logging.error(f"private_key: {os.environ.get('private_key')}")
|
32 |
-
|
33 |
logging.error(f'Error while loading credentials: {e}')
|
34 |
return None
|
35 |
|
@@ -41,6 +38,8 @@ def connect_to_db(credentials_dict):
|
|
41 |
logging.info('Established connection to db!')
|
42 |
return firestore.client()
|
43 |
except Exception as e:
|
|
|
|
|
44 |
logging.error(f'Error while connecting to db: {e}')
|
45 |
return None
|
46 |
|
|
|
26 |
}
|
27 |
credentials_dict.update(secret)
|
28 |
return credentials_dict
|
29 |
+
except Exception as e:
|
|
|
|
|
|
|
30 |
logging.error(f'Error while loading credentials: {e}')
|
31 |
return None
|
32 |
|
|
|
38 |
logging.info('Established connection to db!')
|
39 |
return firestore.client()
|
40 |
except Exception as e:
|
41 |
+
logging.error(f"private_key_id: {os.environ.get('private_key_id')}")
|
42 |
+
logging.error(f"private_key: {os.environ.get('private_key')}")
|
43 |
logging.error(f'Error while connecting to db: {e}')
|
44 |
return None
|
45 |
|