Commit 15437f00 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[refactor] code cleanup for daemon

Remove unneeded module, clean up calls to the logger.
parent 6087e7fe
from __future__ import print_function
import logging
import random
import re
import signal
import zmq
......@@ -74,7 +73,7 @@ class Daemon(object): = 1.0
def do_application_receive(self, parts):"receiving application stream: " + repr(parts))"receiving application stream: %r", parts)
identity = parts[0]
if len(parts[1]) == 0:
......@@ -93,7 +92,7 @@ class Daemon(object):
for m in application.get_messages():
application.do_transition(m)"application now in state: " +"application now in state: %s",
def do_upstream_receive(self, msg):
......@@ -123,7 +122,7 @@ class Daemon(object):
pass"application now in state: " + application.state)"application now in state: %s", application.state)
def do_signal(self, signum, frame):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment