blob: 4ccf108108800c779a93681496dae29777763314 [file] [log] [blame]
Tomáš Pecka261c8862020-11-05 11:23:08 +01001#include "health/State.h"
Tomáš Pecka74b885f2020-06-06 20:02:41 +02002
Tomáš Pecka261c8862020-11-05 11:23:08 +01003namespace velia::health {
Tomáš Pecka74b885f2020-06-06 20:02:41 +02004
5std::ostream& operator<<(std::ostream& os, State state)
6{
7 os << "State::";
8 switch (state) {
9 case State::ERROR:
10 os << "ERROR";
11 break;
12 case State::WARNING:
13 os << "WARNING";
14 break;
15 case State::OK:
16 os << "OK";
17 break;
18 }
19
20 return os;
21}
22
23}