Added special syntax to config files to enable log categories early.

This commit is contained in:
Jari Sundell
2026-04-19 18:07:38 +02:00
committed by GitHub
parent 1adcf230d2
commit a964b0a350
9 changed files with 298 additions and 181 deletions
+2 -2
View File
@@ -16,12 +16,12 @@ expand_path(const std::string& path) {
if (path[0] == '~') {
if (path.size() >= 2 && path[1] != '/')
throw torrent::input_error("Could not expand ~ in session path, only '~' or '~/...' is supported.");
throw torrent::input_error("Could not expand ~ in path, only '~' or '~/...' is supported.");
const char* home = std::getenv("HOME");
if (home == nullptr || *home == '\0')
throw torrent::input_error("Could not expand ~ in session path, HOME environment variable not set.");
throw torrent::input_error("Could not expand ~ in path, HOME environment variable not set.");
return home + path.substr(1);
}