diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-26 09:33:54 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-26 09:33:54 +0200 |
commit | 8f9314d1a4b9c8979e773e3ca2387e69e8b5e555 (patch) | |
tree | 57e9c84e66b4d8428576dde3b8cda066aa3a6f7f /framework/src/sinkfabric.cpp | |
parent | c47d6af8b7ccef89aab63a54ce52bfe84421853c (diff) | |
download | kube-8f9314d1a4b9c8979e773e3ca2387e69e8b5e555.tar.gz kube-8f9314d1a4b9c8979e773e3ca2387e69e8b5e555.zip |
We don't need a log entry for a status change, we have an error
notification already for that.
Diffstat (limited to 'framework/src/sinkfabric.cpp')
-rw-r--r-- | framework/src/sinkfabric.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/framework/src/sinkfabric.cpp b/framework/src/sinkfabric.cpp index 87b243e0..9768fa96 100644 --- a/framework/src/sinkfabric.cpp +++ b/framework/src/sinkfabric.cpp | |||
@@ -158,13 +158,7 @@ public: | |||
158 | return; | 158 | return; |
159 | } | 159 | } |
160 | } else if (notification.type == Sink::Notification::Status) { | 160 | } else if (notification.type == Sink::Notification::Status) { |
161 | if (notification.code == Sink::ApplicationDomain::ErrorStatus) { | 161 | return; |
162 | //A resource entered error status | ||
163 | message["type"] = Notification::Warning; | ||
164 | message["message"] = QObject::tr("A resource experienced an error."); | ||
165 | } else { | ||
166 | return; | ||
167 | } | ||
168 | } else if (notification.type == Sink::Notification::Error) { | 162 | } else if (notification.type == Sink::Notification::Error) { |
169 | message["type"] = Notification::Warning; | 163 | message["type"] = Notification::Warning; |
170 | message["resource"] = QString{notification.resource}; | 164 | message["resource"] = QString{notification.resource}; |