Extend debug to databases too

This commit is contained in:
JustArchi
2018-05-18 21:12:33 +02:00
parent 3d80a1b6ac
commit 7c133a799b
2 changed files with 10 additions and 2 deletions

View File

@@ -250,7 +250,7 @@ namespace ArchiSteamFarm {
}
if (Debugging.IsUserDebugging) {
ASF.ArchiLogger.LogGenericDebug(SharedInfo.ASF + ": " + JsonConvert.SerializeObject(GlobalConfig, Formatting.Indented));
ASF.ArchiLogger.LogGenericDebug(SharedInfo.GlobalConfigFileName + ": " + JsonConvert.SerializeObject(GlobalConfig, Formatting.Indented));
}
if (GlobalConfig.BackgroundGCPeriod > 0) {
@@ -326,6 +326,10 @@ namespace ArchiSteamFarm {
return;
}
if (Debugging.IsUserDebugging) {
ASF.ArchiLogger.LogGenericDebug(SharedInfo.GlobalDatabaseFileName + ": " + JsonConvert.SerializeObject(GlobalDatabase, Formatting.Indented));
}
// If debugging is on, we prepare debug directory prior to running
if (GlobalConfig.Debug) {
Logging.EnableTraceLogging();