aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-30 12:57:53 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-30 12:57:53 +0100
commit763bd99a37734417f145e257b398f8aa0de29c0c (patch)
tree6532e03c769255302a9d3400f7e7b5ecfe2f4318
parentbbf23c4d8acb28eba6da018271330d674b8e8dd4 (diff)
downloaddabmux-763bd99a37734417f145e257b398f8aa0de29c0c.tar.gz
dabmux-763bd99a37734417f145e257b398f8aa0de29c0c.tar.bz2
dabmux-763bd99a37734417f145e257b398f8aa0de29c0c.zip
Replace emerg log level by alert
emergency is reserved for states where the system becomes unusable, and some configurations send emergency logs to all consoles. That's a bit too drastic for our errors
-rw-r--r--src/DabMux.cpp4
-rw-r--r--src/MuxElements.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index 79a8573..32ddb39 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -409,7 +409,7 @@ int main(int argc, char *argv[])
if (outputs.size() == 0) {
- etiLog.log(emerg, "no output defined");
+ etiLog.log(alert, "no output defined");
throw MuxInitException();
}
@@ -489,7 +489,7 @@ int main(int argc, char *argv[])
outputs.clear();
if (returnCode != 0) {
- etiLog.log(emerg, "...aborting\n");
+ etiLog.log(alert, "...aborting\n");
} else {
etiLog.log(debug, "...done\n");
}
diff --git a/src/MuxElements.cpp b/src/MuxElements.cpp
index db59078..79aabf6 100644
--- a/src/MuxElements.cpp
+++ b/src/MuxElements.cpp
@@ -385,7 +385,7 @@ void DabComponent::set_parameter(const string& parameter,
throw ParameterError(ss.str());
default:
ss << m_name << " short label definition: program error !";
- etiLog.level(emerg) << ss.str();
+ etiLog.level(alert) << ss.str();
throw ParameterError(ss.str());
}
}
@@ -500,7 +500,7 @@ void DabService::set_parameter(const string& parameter,
throw ParameterError(ss.str());
default:
ss << m_name << " short label definition: program error !";
- etiLog.level(emerg) << ss.str();
+ etiLog.level(alert) << ss.str();
throw ParameterError(ss.str());
}
}