commit | c0a2da84e182424ca49ebfa994305d84491e1845 | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Wed Jul 04 15:27:37 2018 +0200 |
committer | Akron <nils@diewald-online.de> | Thu Jul 19 12:13:15 2018 +0200 |
tree | 179bc99c837bdb4ad80279e6b2ec1d96f3151f75 | |
parent | e8e2c9567cb6eeb4ba298f6b4d6a89a3bf022aa8 [diff] [blame] |
Added source to log messages Change-Id: Iacc15ff3514373814ad4f4b3de206d6a83d5338d
diff --git a/dev/js/src/util.js b/dev/js/src/util.js index 80f6364..cb60c2a 100644 --- a/dev/js/src/util.js +++ b/dev/js/src/util.js
@@ -99,7 +99,8 @@ // Default log message - KorAP.log = KorAP.log || function (type, msg) { + KorAP.log = KorAP.log || function (type, msg, src) { + if (src) msg += ' from ' + src; console.log(type + ": " + msg); };