Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
medvedev1088 committed Apr 5, 2019
1 parent acba81a commit 2da04e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile_with_streaming
Expand Up @@ -11,4 +11,5 @@ RUN pip install --upgrade pip && pip install -e /$PROJECT_DIR/[streaming]
ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini

ENTRYPOINT ["/tini", "--", "python", "bitcoinetl"]
1 change: 1 addition & 0 deletions blockchainetl/streaming/streamer.py
Expand Up @@ -59,6 +59,7 @@ def __init__(
def stream(self):
try:
if self.pid_file is not None:
logging.info('Creating pid file {}'.format(self.pid_file))
write_to_file(self.pid_file, str(os.getpid()))
self.blockchain_streamer_adapter.open()
self._do_stream()
Expand Down

0 comments on commit 2da04e7

Please sign in to comment.