update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b second try
[osm/SO.git] / rwlaunchpad / plugins / rwlaunchpadtasklet / rift / tasklets / rwlaunchpad / message.py
index a1827eb..4b6a3fd 100644 (file)
@@ -1,5 +1,5 @@
 
-# 
+#
 #   Copyright 2016 RIFT.IO Inc
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
@@ -42,7 +42,7 @@ class Message(object):
     def __repr__(self):
         return "{} {}:{}:{}".format(
                 self.timestamp,
-                logging._levelNames.get(self.level, self.level),
+                logging._levelToName.get(self.level, self.level),
                 self.name,
                 self.text,
                 )
@@ -139,6 +139,15 @@ class Logger(object):
         return getattr(self._rift_logger, name)
 
 
+class DownloadError(ErrorMessage):
+    def __init__(self, msg):
+        super().__init__("Download-error", msg)
+
+
+class DownloadSuccess(StatusMessage):
+    def __init__(self, msg):
+        super().__init__("Download-Successful.", msg)
+
 
 class OnboardError(ErrorMessage):
     def __init__(self, msg):