summaryrefslogtreecommitdiff
path: root/lib/rbot/journal.rb
diff options
context:
space:
mode:
authorMatthias Hecker <apoc@geekosphere.org>2015-06-21 00:05:38 +0200
committerMatthias Hecker <apoc@geekosphere.org>2015-06-21 00:05:38 +0200
commit5d98c9493ba069a0df7345157236caa938f9dcb2 (patch)
treec7c63ac629a7b5a9350c77c8ee0d6207587b83c0 /lib/rbot/journal.rb
parent732f8df5966f4b85ffe19e045e9aeccc35206fab (diff)
journal: irc logging module
Diffstat (limited to 'lib/rbot/journal.rb')
-rw-r--r--lib/rbot/journal.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbot/journal.rb b/lib/rbot/journal.rb
index 8d897929..0903fc9f 100644
--- a/lib/rbot/journal.rb
+++ b/lib/rbot/journal.rb
@@ -77,6 +77,8 @@ module Journal
end
def self.create(topic, payload, opt={})
+ # cleanup payload to only contain strings
+ payload = payload.map { |k, v| [k.to_s, v.to_s] }.to_h
JournalMessage.new(
id: opt[:id] || SecureRandom.uuid,
timestamp: opt[:timestamp] || Time.now,