Skip to content

Commit

Permalink
campaignd: Log unrecognized FIFO commands
Browse files Browse the repository at this point in the history
  • Loading branch information
irydacea committed Apr 24, 2015
1 parent fd96b33 commit e00bf02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/campaign_server/campaign_server.cpp
Expand Up @@ -294,6 +294,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';
}
}

Expand Down
8 changes: 8 additions & 0 deletions src/campaign_server/control.hpp
Expand Up @@ -105,6 +105,14 @@ class control_line
return args_[n];
}

/**
* Return the full command line string.
*/
std::string full() const
{
return utils::join(args_, " ");
}

private:
std::vector<std::string> args_;
};
Expand Down

0 comments on commit e00bf02

Please sign in to comment.