ipulse-shared-core-ftredge 2.16__py3-none-any.whl → 2.18__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ipulse_shared_core_ftredge/__init__.py +1 -1
- ipulse_shared_core_ftredge/gcp_logger.py +4 -2
- {ipulse_shared_core_ftredge-2.16.dist-info → ipulse_shared_core_ftredge-2.18.dist-info}/METADATA +2 -2
- {ipulse_shared_core_ftredge-2.16.dist-info → ipulse_shared_core_ftredge-2.18.dist-info}/RECORD +7 -7
- {ipulse_shared_core_ftredge-2.16.dist-info → ipulse_shared_core_ftredge-2.18.dist-info}/LICENCE +0 -0
- {ipulse_shared_core_ftredge-2.16.dist-info → ipulse_shared_core_ftredge-2.18.dist-info}/WHEEL +0 -0
- {ipulse_shared_core_ftredge-2.16.dist-info → ipulse_shared_core_ftredge-2.18.dist-info}/top_level.txt +0 -0
|
@@ -21,7 +21,9 @@ from google.cloud import error_reporting, logging as cloud_logging
|
|
|
21
21
|
##### THIS APPROACH IS USED NOW ########
|
|
22
22
|
## TODO Fix the issue with POST 0B Nan.... printed in Cloud Logging , which is referring to posting to Cloud Logging probably.
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
ENV = os.getenv('ENV', 'LOCAL').strip("'")
|
|
25
|
+
|
|
26
|
+
def setup_gcp_logger_and_error_reporting(logger_name):
|
|
25
27
|
"""Sets up a logger with Error Reporting and Cloud Logging handlers.
|
|
26
28
|
|
|
27
29
|
Args:
|
|
@@ -65,7 +67,7 @@ def setup_logger(logger_name):
|
|
|
65
67
|
logger.addHandler(cloud_logging_handler)
|
|
66
68
|
|
|
67
69
|
# Add a console handler for local development
|
|
68
|
-
if
|
|
70
|
+
if ENV == "LOCAL":
|
|
69
71
|
formatter = logging.Formatter('%(levelname)s : %(name)s : %(asctime)s : %(message)s')
|
|
70
72
|
console_handler = logging.StreamHandler()
|
|
71
73
|
console_handler.setFormatter(formatter)
|
{ipulse_shared_core_ftredge-2.16.dist-info → ipulse_shared_core_ftredge-2.18.dist-info}/METADATA
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipulse_shared_core_ftredge
|
|
3
|
-
Version: 2.
|
|
4
|
-
Summary: Shared models for the Pulse platform project. Using AI for financial advisory and investment management.
|
|
3
|
+
Version: 2.18
|
|
4
|
+
Summary: Shared Core models and Logger util for the Pulse platform project. Using AI for financial advisory and investment management.
|
|
5
5
|
Home-page: https://github.com/TheFutureEdge/ipulse_shared_core
|
|
6
6
|
Author: Russlan Ramdowar
|
|
7
7
|
License-File: LICENCE
|
{ipulse_shared_core_ftredge-2.16.dist-info → ipulse_shared_core_ftredge-2.18.dist-info}/RECORD
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
ipulse_shared_core_ftredge/__init__.py,sha256=
|
|
2
|
-
ipulse_shared_core_ftredge/gcp_logger.py,sha256=
|
|
1
|
+
ipulse_shared_core_ftredge/__init__.py,sha256=8o0eMZsBzsaGndfYJdZhSY5x5h3a4enFjx50DOrdA8Y,161
|
|
2
|
+
ipulse_shared_core_ftredge/gcp_logger.py,sha256=RPtEm5D48wx4eeH4OxsxrkDF4l8QFUeLB28B-q491Xw,2872
|
|
3
3
|
ipulse_shared_core_ftredge/models/__init__.py,sha256=gE22Gzhil0RYQa7YLtdtT44_AsWqklcDfRtgLAQc1dI,200
|
|
4
4
|
ipulse_shared_core_ftredge/models/audit_log_firestore.py,sha256=5AwO6NHuOncq65n400eqM8QPrS2EGGaP3Z_6l2rxdBE,261
|
|
5
5
|
ipulse_shared_core_ftredge/models/organisation.py,sha256=4f1ATEWh5WT-CDJBLEZUhUwyl3V06ogRkteZAqW_nko,2953
|
|
@@ -11,8 +11,8 @@ ipulse_shared_core_ftredge/models/user_profile_update.py,sha256=oKK0XsQDKkgDvjFP
|
|
|
11
11
|
ipulse_shared_core_ftredge/models/user_status.py,sha256=8TyRd8tBK9_xb0MPKbI5pn9-lX7ovKbeiuWYYPtIOiw,3202
|
|
12
12
|
ipulse_shared_core_ftredge/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
ipulse_shared_core_ftredge/tests/test.py,sha256=0lS8HP5Quo_BqNoscU40qOH9aJRaa1Pfam5VUBmdld8,682
|
|
14
|
-
ipulse_shared_core_ftredge-2.
|
|
15
|
-
ipulse_shared_core_ftredge-2.
|
|
16
|
-
ipulse_shared_core_ftredge-2.
|
|
17
|
-
ipulse_shared_core_ftredge-2.
|
|
18
|
-
ipulse_shared_core_ftredge-2.
|
|
14
|
+
ipulse_shared_core_ftredge-2.18.dist-info/LICENCE,sha256=YBtYAXNqCCOo9Mr2hfkbSPAM9CeAr2j1VZBSwQTrNwE,1060
|
|
15
|
+
ipulse_shared_core_ftredge-2.18.dist-info/METADATA,sha256=Vzxj-JC7N7NPTtH-qJtRc6prJ0XNTUv-xiw8oP-Hcxo,515
|
|
16
|
+
ipulse_shared_core_ftredge-2.18.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
17
|
+
ipulse_shared_core_ftredge-2.18.dist-info/top_level.txt,sha256=8sgYrptpexkA_6_HyGvho26cVFH9kmtGvaK8tHbsGHk,27
|
|
18
|
+
ipulse_shared_core_ftredge-2.18.dist-info/RECORD,,
|
{ipulse_shared_core_ftredge-2.16.dist-info → ipulse_shared_core_ftredge-2.18.dist-info}/LICENCE
RENAMED
|
File without changes
|
{ipulse_shared_core_ftredge-2.16.dist-info → ipulse_shared_core_ftredge-2.18.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|