X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwlaunchpad%2Fplugins%2Frwlaunchpadtasklet%2Frift%2Ftasklets%2Frwlaunchpad%2Fmessage.py;h=4b6a3fd81e177e2c1eee9568efbf31bbf17e25c1;hb=f314b4af9744068a7ed7a6a6314220c3aa857523;hp=a1827ebdbc2697452accbb959ad06bd5329a8a2e;hpb=49868d2c71eb364cee9707515be6841a568dad40;p=osm%2FSO.git diff --git a/rwlaunchpad/plugins/rwlaunchpadtasklet/rift/tasklets/rwlaunchpad/message.py b/rwlaunchpad/plugins/rwlaunchpadtasklet/rift/tasklets/rwlaunchpad/message.py index a1827ebd..4b6a3fd8 100644 --- a/rwlaunchpad/plugins/rwlaunchpadtasklet/rift/tasklets/rwlaunchpad/message.py +++ b/rwlaunchpad/plugins/rwlaunchpadtasklet/rift/tasklets/rwlaunchpad/message.py @@ -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):