Skip to content
This repository was archived by the owner on Feb 16, 2020. It is now read-only.

Commit 1097943

Browse files
committed
Adds the version as a field in the gelf log entry
1 parent ec790cf commit 1097943

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

etherscan-exporter/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
import os
66
from .lib import log as logging
7+
from .lib import constants
78

89
log = logging.setup_logger(
910
name=__package__,
1011
level=os.environ.get('LOGLEVEL', 'INFO'),
1112
gelf_host=os.environ.get('GELF_HOST'),
1213
gelf_port=int(os.environ.get('GELF_PORT', 12201)),
1314
_ix_id=__package__,
15+
_version=f'{constants.VERSION}-{constants.BUILD}',
1416
)

0 commit comments

Comments
 (0)