summaryrefslogtreecommitdiff
path: root/exe/killjoy-publisher
diff options
context:
space:
mode:
authormo khan <mokhan@users.noreply.github.com>2019-04-20 09:32:24 -0600
committerGitHub <noreply@github.com>2019-04-20 09:32:24 -0600
commitbc2274ce4183bee7523665bf8a905a584f20081a (patch)
treeb336f1e4c305a3d22a2177b5b8e14f2b68989348 /exe/killjoy-publisher
parenta7cd8453ab61f3a7b6ab59cda9d051dc725cdead (diff)
parent85bd0e5d520109f29011f6eff69e9d2f2e20af26 (diff)
Merge pull request #2 from mokhan/kafkamain
Kafka
Diffstat (limited to 'exe/killjoy-publisher')
-rwxr-xr-xexe/killjoy-publisher3
1 files changed, 2 insertions, 1 deletions
diff --git a/exe/killjoy-publisher b/exe/killjoy-publisher
index 3d50a56..a969835 100755
--- a/exe/killjoy-publisher
+++ b/exe/killjoy-publisher
@@ -7,7 +7,8 @@ require "killjoy"
log_file = ENV.fetch("LOG_FILE", "spec/fixtures/nginx.log")
parser = Killjoy::LogParser.new
-message_bus = Killjoy::MessageBus.new
+#message_bus = Killjoy::MessageBus.new
+message_bus = Killjoy::Kafka::MessageBus.new
Killjoy::Publisher.using(message_bus) do |publisher|
log_file = File.join(Dir.pwd, log_file)
lines = File.readlines(log_file)