Skip to content

Re: DEP-463, DEP-511#196

Merged
joshp123 merged 4 commits intobuildpack-2.2from
DEP-463
Sep 25, 2018
Merged

Re: DEP-463, DEP-511#196
joshp123 merged 4 commits intobuildpack-2.2from
DEP-463

Conversation

@hansthen
Copy link
Copy Markdown
Contributor

Re: DEP-463 Add S3 storage metrics. This only works from a specific mendix
version, which is why we have the catch-all handler.

Re: DEP-511 Bandaid patcher to only print the first error message in case the logs
storage server is unavailable.

@hansthen hansthen force-pushed the DEP-463 branch 2 times, most recently from 373636d to a622b35 Compare September 17, 2018 12:22
Re: DEP-463 Add S3 storage metrics. This only works from a specific mendix
version, which is why we have the catch-all handler.

Re: DEP-511 Bandaid patcher to only print the first error message in case the logs
storage server is unavailable.
Comment thread lib/metrics.py Outdated
"Failed to send metrics to trends server.", exc_info=True
)
if self.logfailure:
logger.warning(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already did DEP-511 here: #189, so the changes to the logging are not needed.

Comment thread lib/metrics.py Outdated
except Exception as e:
# We ignore errors here, as the information is not available for
# older mendix versions
logger.debug("METRICS: Error retrieving file sizes", e)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are only logging this at DEBUG level, then it would be good to include the traceback, replace e with exc_info=True.

@joshp123 joshp123 merged commit e2b1bd5 into buildpack-2.2 Sep 25, 2018
@joshp123 joshp123 deleted the DEP-463 branch October 12, 2020 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants