Skip to content

Commit

Permalink
import fix in parser and logger when started
Browse files Browse the repository at this point in the history
  • Loading branch information
Raja Simon committed Jul 28, 2016
1 parent db16f33 commit b477667
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beatserver/parser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import importlib
from channels import channel_layer
from channels import channel_layers


def cli_parser(args):
Expand All @@ -17,7 +17,7 @@ def __init__(self, project_name=None):
self.project_name = project_name

def check_in_memory(self):
backend = channel_layer.config['defaut']['BACKEND']
backend = channel_layers.config['defaut']['BACKEND']
if backend == "asgiref.inmemory.ChannelLayer":
raise Exception(
" beatserver will not support inmemory Channel layer")
Expand Down
1 change: 1 addition & 0 deletions beatserver/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ def run(self):
schedule = beat_config[beat]['schedule']
x = task.LoopingCall(self.run_task, channel_name, message)
x.start(schedule.total_seconds())
logger.info("beatserver started")
reactor.run()

0 comments on commit b477667

Please sign in to comment.