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 );
|
auto ap = appender::get( *a );
|
||||||
if( ap ) { lgr.add_appender(ap); }
|
if( ap ) { lgr.add_appender(ap); }
|
||||||
}
|
}
|
||||||
return reg_console_appender || reg_file_appender;
|
|
||||||
}
|
}
|
||||||
|
return reg_console_appender || reg_file_appender;
|
||||||
} catch ( exception& e )
|
} catch ( exception& e )
|
||||||
{
|
{
|
||||||
fc::cerr<<e.to_detail_string()<<"\n";
|
fc::cerr<<e.to_detail_string()<<"\n";
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ namespace fc { namespace http {
|
||||||
}
|
}
|
||||||
ss << "Content-Length: "<<body_length<<"\r\n\r\n";
|
ss << "Content-Length: "<<body_length<<"\r\n\r\n";
|
||||||
auto s = ss.str();
|
auto s = ss.str();
|
||||||
fc::cerr<<s<<"\n";
|
//fc::cerr<<s<<"\n";
|
||||||
con->get_socket().write( s.c_str(), s.size() );
|
con->get_socket().write( s.c_str(), s.size() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue