Fix typo.

Fix typo.

From fd6e767dbaa4dde2adb7dba57287dfc526179eea Mon Sep 17 00:00:00 2001
From: Guo Xiang Tan <tgx_world@hotmail.com>
Date: Mon, 13 Aug 2018 15:09:04 +0800
Subject: [PATCH] Fix typo.


diff --git a/lib/reporter/global.rb b/lib/reporter/global.rb
index c3aad08..ff33229 100644
--- a/lib/reporter/global.rb
+++ b/lib/reporter/global.rb
@@ -9,7 +9,7 @@ module DiscoursePrometheus::Reporter
             metric = global_collector.collect
             client.send_json metric
           rescue => e
-            Rails.logger.warn("Prometheus Discoruse Failed To Collect Global Stats #{e}")
+            Rails.logger.warn("Prometheus Discourse Failed To Collect Global Stats #{e}")
           ensure
             sleep 5
           end
diff --git a/lib/reporter/process.rb b/lib/reporter/process.rb
index f210eed..d94c883 100644
--- a/lib/reporter/process.rb
+++ b/lib/reporter/process.rb
@@ -10,7 +10,7 @@ module DiscoursePrometheus::Reporter
             metric = process_collector.collect
             client.send_json metric
           rescue => e
-            Rails.logger.warn("Prometheus Discoruse Failed To Collect Process Stats #{e.class} #{e}\n#{e.backtrace.join("\n")}")
+            Rails.logger.warn("Prometheus Discourse Failed To Collect Process Stats #{e.class} #{e}\n#{e.backtrace.join("\n")}")
           ensure
             sleep frequency
           end

GitHub

2 Likes