You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by bo...@apache.org on 2017/04/13 02:11:57 UTC

[2/4] storm git commit: Changed the names of the logging methods to be inline with the Python module.

Changed the names of the logging methods to be inline with the Python module.


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/5913d160
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/5913d160
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/5913d160

Branch: refs/heads/master
Commit: 5913d160fa38efc3e8888e761e075582ba8c8a5f
Parents: 457f422
Author: Aki M�kinen <ak...@outlook.com>
Authored: Tue Mar 28 18:19:06 2017 +0300
Committer: Aki M�kinen <ak...@outlook.com>
Committed: Tue Mar 28 18:19:06 2017 +0300

----------------------------------------------------------------------
 .../src/main/resources/resources/storm.js          | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/5913d160/storm-multilang/javascript/src/main/resources/resources/storm.js
----------------------------------------------------------------------
diff --git a/storm-multilang/javascript/src/main/resources/resources/storm.js b/storm-multilang/javascript/src/main/resources/resources/storm.js
index 1481362..25e0a6d 100755
--- a/storm-multilang/javascript/src/main/resources/resources/storm.js
+++ b/storm-multilang/javascript/src/main/resources/resources/storm.js
@@ -56,30 +56,29 @@ Storm.prototype.sendToLogging = function(args, logLevel) {
     this.sendMsgToParent({'command': 'log', 'msg': msg, 'level': logLevel});
 };
 
-Storm.prototype.log = function() {
-    this.sendToLogging(arguments, this.logLevels.info);
-};
-
-Storm.prototype.trace = function() {
+Storm.prototype.logTrace = function() {
     this.sendToLogging(arguments, this.logLevels.trace);
 };
 
-Storm.prototype.debug = function() {
+Storm.prototype.logDebug = function() {
     this.sendToLogging(arguments, this.logLevels.debug);
 };
 
-Storm.prototype.info = function() {
+Storm.prototype.logInfo = function() {
     this.sendToLogging(arguments, this.logLevels.info);
 };
 
-Storm.prototype.warn = function() {
+Storm.prototype.logWarn = function() {
     this.sendToLogging(arguments, this.logLevels.warn);
 };
 
-Storm.prototype.error = function() {
+Storm.prototype.logError = function() {
     this.sendToLogging(arguments, this.logLevels.error);
 };
 
+// For backwards compatibility
+Storm.prototype.log = Storm.prototype.logInfo;
+
 Storm.prototype.initSetupInfo = function(setupInfo) {
     var self = this;
     var callback = function() {