This commit is contained in:
Hossein Shafagh 2019-08-13 12:16:23 -07:00
parent a3dfc3ef0a
commit 6e17d36d76
1 changed files with 6 additions and 6 deletions

View File

@ -301,7 +301,7 @@ def clean_source(source):
try: try:
clean([source], True) clean([source], True)
except SoftTimeLimitExceeded: except SoftTimeLimitExceeded:
log_data["message"] = "Checking revoked: Time limit exceeded." log_data["message"] = "Clean source: Time limit exceeded."
current_app.logger.error(log_data) current_app.logger.error(log_data)
sentry.captureException() sentry.captureException()
metrics.send("clean_source_timeout", "counter", 1) metrics.send("clean_source_timeout", "counter", 1)
@ -412,7 +412,7 @@ def certificate_reissue():
try: try:
cli_certificate.reissue(None, True) cli_certificate.reissue(None, True)
except SoftTimeLimitExceeded: except SoftTimeLimitExceeded:
log_data["message"] = "Checking revoked: Time limit exceeded." log_data["message"] = "Certificate reissue: Time limit exceeded."
current_app.logger.error(log_data) current_app.logger.error(log_data)
sentry.captureException() sentry.captureException()
metrics.send("certificate_reissue_timeout", "counter", 1) metrics.send("certificate_reissue_timeout", "counter", 1)
@ -438,7 +438,7 @@ def certificate_rotate():
try: try:
cli_certificate.rotate(None, None, None, None, True) cli_certificate.rotate(None, None, None, None, True)
except SoftTimeLimitExceeded: except SoftTimeLimitExceeded:
log_data["message"] = "Checking revoked: Time limit exceeded." log_data["message"] = "Certificate rotate: Time limit exceeded."
current_app.logger.error(log_data) current_app.logger.error(log_data)
sentry.captureException() sentry.captureException()
metrics.send("certificate_rotate_timeout", "counter", 1) metrics.send("certificate_rotate_timeout", "counter", 1)
@ -464,7 +464,7 @@ def endpoints_expire():
try: try:
cli_endpoints.expire(2) # Time in hours cli_endpoints.expire(2) # Time in hours
except SoftTimeLimitExceeded: except SoftTimeLimitExceeded:
log_data["message"] = "Checking revoked: Time limit exceeded." log_data["message"] = "endpoint expire: Time limit exceeded."
current_app.logger.error(log_data) current_app.logger.error(log_data)
sentry.captureException() sentry.captureException()
metrics.send("endpoints_expire_timeout", "counter", 1) metrics.send("endpoints_expire_timeout", "counter", 1)
@ -488,7 +488,7 @@ def get_all_zones():
try: try:
cli_dns_providers.get_all_zones() cli_dns_providers.get_all_zones()
except SoftTimeLimitExceeded: except SoftTimeLimitExceeded:
log_data["message"] = "Checking revoked: Time limit exceeded." log_data["message"] = "get all zones: Time limit exceeded."
current_app.logger.error(log_data) current_app.logger.error(log_data)
sentry.captureException() sentry.captureException()
metrics.send("get_all_zones_timeout", "counter", 1) metrics.send("get_all_zones_timeout", "counter", 1)
@ -548,7 +548,7 @@ def notify_expirations():
try: try:
cli_notification.expirations(current_app.config.get("EXCLUDE_CN_FROM_NOTIFICATION", [])) cli_notification.expirations(current_app.config.get("EXCLUDE_CN_FROM_NOTIFICATION", []))
except SoftTimeLimitExceeded: except SoftTimeLimitExceeded:
log_data["message"] = "Checking revoked: Time limit exceeded." log_data["message"] = "Notify expiring Time limit exceeded."
current_app.logger.error(log_data) current_app.logger.error(log_data)
sentry.captureException() sentry.captureException()
metrics.send("notify_expirations_timeout", "counter", 1) metrics.send("notify_expirations_timeout", "counter", 1)