Added stream name to logging

This commit is contained in:
Thulinma 2018-11-21 16:43:23 +01:00
parent ac92e09262
commit 3cb03392e1
7 changed files with 34 additions and 7 deletions

View file

@ -71,7 +71,7 @@ namespace Controller {
rlxLogs->setEndPos(logCounter);
}
}else{
std::cerr << kind << "|MistController|" << getpid() << "||" << message << "\n";
std::cerr << kind << "|MistController|" << getpid() << "|||" << message << "\n";
}
}

View file

@ -95,6 +95,7 @@ namespace Mist {
int Input::boot(int argc, char * argv[]){
if (!(config->parseArgs(argc, argv))){return 1;}
streamName = nProxy.streamName = config->getString("streamname");
Util::Config::streamName = streamName;
if (config->getBool("json")) {
std::cout << capa.toString() << std::endl;

View file

@ -79,6 +79,7 @@ namespace Mist{
//If we have a streamname option, set internal streamname to that option
if (!streamName.size() && config->hasOption("streamname")){
streamName = config->getString("streamname");
Util::Config::streamName = streamName;
}
}