This repository was archived by the owner on Feb 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+
3+ echo " Setting VERSION='${CI_COMMIT_REF_NAME} -${CI_COMMIT_SHORT_SHA} ' in src/constants.py"
4+ echo " VERSION = '${CI_COMMIT_REF_NAME} -${CI_COMMIT_SHORT_SHA} '" >> src/constants.py
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+ # -*- coding: utf-8 -*-
3+ """ Constants declarations """
4+
5+ VERSION = None
Original file line number Diff line number Diff line change 1010import pygelf
1111from prometheus_client import start_http_server
1212from prometheus_client .core import REGISTRY , GaugeMetricFamily
13+ import constants
1314
1415LOG = logging .getLogger (__name__ )
1516logging .basicConfig (
@@ -163,7 +164,8 @@ def collect(self):
163164if __name__ == '__main__' :
164165 configure_logging ()
165166 PORT = int (os .environ .get ('PORT' , 9308 ))
166- LOG .info ("Starting on port {}" .format (PORT ))
167+ # pylint: disable=no-member
168+ LOG .info ("Starting etherscan-exporter {} on port {}" .format (constants .VERSION , PORT ))
167169 REGISTRY .register (EtherscanCollector ())
168170 start_http_server (PORT )
169171 while True :
You can’t perform that action at this time.
0 commit comments