mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Filesystem] Path Manager Improvements (#4557)
* [Filesystem] Path Manager Improvements * Update path_manager.cpp * Use native fs path building syntax
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
#include "repositories/discord_webhooks_repository.h"
|
||||
#include "repositories/logsys_categories_repository.h"
|
||||
#include "termcolor/rang.hpp"
|
||||
#include "path_manager.h"
|
||||
#include "file.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
@@ -532,6 +534,11 @@ void EQEmuLogSys::StartFileLogs(const std::string &log_name)
|
||||
{
|
||||
EQEmuLogSys::CloseFileLogs();
|
||||
|
||||
if (!File::Exists(path.GetLogPath())) {
|
||||
LogInfo("Logs directory not found, creating [{}]", path.GetLogPath());
|
||||
File::Makedir(path.GetLogPath());
|
||||
}
|
||||
|
||||
/**
|
||||
* When loading settings, we must have been given a reason in category based logging to output to a file in order to even create or open one...
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user