Added source to log messages
Change-Id: Iacc15ff3514373814ad4f4b3de206d6a83d5338d
diff --git a/dev/js/src/plugin/server.js b/dev/js/src/plugin/server.js
index 9401de6..7dd0fce 100644
--- a/dev/js/src/plugin/server.js
+++ b/dev/js/src/plugin/server.js
@@ -116,7 +116,7 @@
if (limits[id]-- < 0) {
// Kill widget
- KorAP.log(0, 'Suspicious action from ' + widget.src);
+ KorAP.log(0, 'Suspicious action by widget', widget.src);
widget.shutdown();
delete limits[id];
delete widgets[id];
@@ -130,7 +130,7 @@
// Log message from iframe
else if (d.action === 'log') {
- KorAP.log(d.code, d.msg);
+ KorAP.log(d.code, d.msg, widget.src);
};
// TODO: