mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
Load NLog.config when not in AppContext.BaseDirectory instead
This is needed as custom NLog.config no longer gets loaded in single-file scenario, where NLog probes the directory of the unpacked files instead. For non-single-publishes this doesn't change anything, as home directory is equal to base directory if not using custom path.
This commit is contained in:
@@ -753,8 +753,8 @@ namespace ArchiSteamFarm {
|
||||
case "":
|
||||
// No directory, root folder
|
||||
switch (fileName) {
|
||||
case Logging.NLogConfigurationFile:
|
||||
case SharedInfo.LogFile:
|
||||
case "NLog.config":
|
||||
// Files with those names in root directory we want to keep
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user