-#
+#
# Copyright 2016 RIFT.IO Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
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,
)
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):