log: Filter for plugin identifier
This commit is contained in:
parent
befa5b0529
commit
d53e9a7b76
|
@ -52,8 +52,10 @@ $(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
self.onDataUpdaterPluginMessage = function(plugin, message) {
|
self.onDataUpdaterPluginMessage = function(plugin, message) {
|
||||||
|
if(plugin == "klipper") {
|
||||||
self.logMessage(message["time"], message["type"], message["message"]);
|
self.logMessage(message["time"], message["type"], message["message"]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
self.logMessage = function(timestamp, type, message) {
|
self.logMessage = function(timestamp, type, message) {
|
||||||
self.logMessages.push({time: timestamp, type: type, msg: message});
|
self.logMessages.push({time: timestamp, type: type, msg: message});
|
||||||
|
|
Loading…
Reference in New Issue