Skip to content

Commit

Permalink
Update snet-daemon to the latest and fix logger configuration issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Habush committed Aug 15, 2019
1 parent fdefb0d commit 2a5fd0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ RUN unzip grpc-proxy.zip && mv dist/grpcwebproxy-v$GRPC_PROXY_V-linux-x86_64 ./
RUN chmod 755 grpc-proxy

#setup snet daemon
ENV SNET_DAEMON_V 0.1.8
ENV SNET_DAEMON_V 1.1.2
RUN mkdir snet-daemon-v$SNET_DAEMON_V
RUN wget https://github.com/singnet/snet-daemon/releases/download/v$SNET_DAEMON_V/snet-daemon-v$SNET_DAEMON_V-linux-amd64.tar.gz
RUN tar -xzf snet-daemon-v$SNET_DAEMON_V-linux-amd64.tar.gz -C snet-daemon-v$SNET_DAEMON_V --strip-components 1
RUN ln snet-daemon-v$SNET_DAEMON_V/snetd snetd
RUN rm snet-daemon-v$SNET_DAEMON_V-linux-amd64.tar.gz

RUN pip install --upgrade pip && \
pip install grpcio --no-binary grpcio

COPY requirements.txt $CODE/requirements.txt
RUN pip install -r requirements.txt
Expand Down
3 changes: 2 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ def setup_logging(default_path='logging.yml', default_level=logging.INFO):


def get_logger(session_id=None):
extra = {"session": session_id}
if session_id is None:
return logging.getLogger("mozi_snet")
extra["session"] = ""

extra = {"session": session_id}

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ coverage
coveralls
flask
flask-cors
grpcio
grpcio-tools
gunicorn
lark-parser==0.5.5
Expand Down

0 comments on commit 2a5fd0d

Please sign in to comment.