campaignd: Log unrecognized FIFO commands

This commit is contained in:
Ignacio R. Morelle 2015-04-23 21:54:57 -03:00
parent 6986e825e2
commit 7b575ed761
2 changed files with 10 additions and 0 deletions

View file

@ -293,6 +293,8 @@ void server::run()
if(ctl == "shut_down") {
LOG_CS << "Shut down requested by admin, shutting down...\n";
break;
} else {
LOG_CS << "Unrecognized admin command: " << ctl.full() << '\n';
}
}

View file

@ -105,6 +105,14 @@ public:
return args_[n];
}
/**
* Return the full command line string.
*/
std::string full() const
{
return utils::join(args_, " ");
}
private:
std::vector<std::string> args_;
};