campaignd: Log unrecognized FIFO commands
This commit is contained in:
parent
6986e825e2
commit
7b575ed761
2 changed files with 10 additions and 0 deletions
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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_;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue