1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-25 14:07:46 +00:00

Merge pull request #9 from zynjec/master

Standardize log location
This commit is contained in:
SapphireMordred 2017-08-09 00:38:30 +02:00 committed by GitHub
commit b00aadf19e
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ void print_request_info( shared_ptr<HttpServer::Request> request ) {
int main() int main()
{ {
g_log.setLogPath( "SapphireAPI" ); g_log.setLogPath( "log\\SapphireAPI" );
g_log.init(); g_log.init();
g_log.info( "===========================================================" ); g_log.info( "===========================================================" );

View file

@ -186,7 +186,7 @@ bool Core::ServerZone::loadSettings( int argc, char* argv[] )
void Core::ServerZone::run( int argc, char* argv[] ) void Core::ServerZone::run( int argc, char* argv[] )
{ {
// TODO: add more error checks for the entire initialisation // TODO: add more error checks for the entire initialisation
g_log.setLogPath( "SapphireZone_" + std::to_string( m_serverId ) + "_" ); g_log.setLogPath( "log\\SapphireZone_" + std::to_string( m_serverId ) + "_" );
g_log.init(); g_log.init();
g_log.info( "===========================================================" ); g_log.info( "===========================================================" );