Merge pull request #22 from valzav/http-server-improvements
fixed a minor bug in configure_logging and commented out one fc::cerr debug output
This commit is contained in:
commit
615f2463fb
2 changed files with 3 additions and 3 deletions
|
|
@ -47,8 +47,8 @@ namespace fc {
|
|||
auto ap = appender::get( *a );
|
||||
if( ap ) { lgr.add_appender(ap); }
|
||||
}
|
||||
return reg_console_appender || reg_file_appender;
|
||||
}
|
||||
return reg_console_appender || reg_file_appender;
|
||||
} catch ( exception& e )
|
||||
{
|
||||
fc::cerr<<e.to_detail_string()<<"\n";
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ namespace fc { namespace http {
|
|||
}
|
||||
ss << "Content-Length: "<<body_length<<"\r\n\r\n";
|
||||
auto s = ss.str();
|
||||
fc::cerr<<s<<"\n";
|
||||
//fc::cerr<<s<<"\n";
|
||||
con->get_socket().write( s.c_str(), s.size() );
|
||||
}
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ namespace fc { namespace http {
|
|||
http::server::response rep( fc::shared_ptr<response::impl>( new response::impl(c) ) );
|
||||
auto req = c->read_request();
|
||||
if( do_on_req ) do_on_req( req, rep );
|
||||
c->get_socket().close();
|
||||
c->get_socket().close();
|
||||
} catch ( fc::exception& e ) {
|
||||
wlog( "unable to read request ${1}", ("1", e.to_detail_string() ) );//fc::except_str().c_str());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue