From 5741a41c6bdaf9863961ec6809132e509f3ca305 Mon Sep 17 00:00:00 2001 From: Damian Mee Date: Tue, 9 Sep 2014 07:04:30 +0200 Subject: [PATCH] feat(event): log machine events on the server --- lib/plugins.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/plugins.js b/lib/plugins.js index 501ea212..f96003ce 100644 --- a/lib/plugins.js +++ b/lib/plugins.js @@ -169,6 +169,9 @@ exports.getCachedConfig = function getCachedConfig() { return cachedConfig; }; +exports.logEvent = function event(rawEvent, deviceFingerprint) { + db.recordDeviceEvent(deviceFingerprint, rawEvent); +}; // This is where we record starting trade balance at the beginning // of the user session