Skip to content

Commit

Permalink
campaignd: Show RO mode warning in load_config() rather than in run()
Browse files Browse the repository at this point in the history
  • Loading branch information
irydacea committed Jun 11, 2014
1 parent 9b1fd86 commit 603c06d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/campaign_server/campaign_server.cpp
Expand Up @@ -114,6 +114,10 @@ int server::load_config()

read_only_ = cfg_["read_only"].to_bool(false);

if(read_only_) {
LOG_CS << "READ-ONLY MODE ACTIVE\n";
}

const bool use_system_sendfile = cfg_["network_use_system_sendfile"].to_bool();
network_worker_pool::set_use_system_sendfile(use_system_sendfile);

Expand Down Expand Up @@ -233,10 +237,6 @@ void server::send_error(const std::string& msg, network::connection sock)

void server::run()
{
if(read_only_) {
LOG_CS << "READ-ONLY MODE ACTIVE\n";
}

network::connection sock = 0;

time_t last_ts = time(NULL);
Expand Down

0 comments on commit 603c06d

Please sign in to comment.