Skip to content

Commit

Permalink
Enabled faulthandler to dump stacktrace to stderr on segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Pracucci committed Jul 25, 2018
1 parent 3cc420b commit 2456829
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions prometheus_jenkins_exporter/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@
import time
import os
import signal
import faulthandler
from urllib.parse import urlencode, quote_plus
from prometheus_client import start_http_server
from prometheus_client.core import GaugeMetricFamily, REGISTRY
import logging
from pythonjsonlogger import jsonlogger


# Enable dumps on stderr in case of segfault
faulthandler.enable()


class JenkinsApiClient():
def __init__(self, config):
self.config = config
Expand Down

0 comments on commit 2456829

Please sign in to comment.