From 141787f401ff705fd1ee7756b9a6fe10d73ca9e9 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Fri, 23 Jun 2023 16:01:59 -0300 Subject: [PATCH] logs changes --- core/parser.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/parser.lua b/core/parser.lua index 33d85ab7..ad59b05a 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -5851,7 +5851,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1 ---@param text string the error to be logged local addToExitErrors = function(text) - table.insert(exitErrors, 1, Details222.Date.GetDateForLogs() .. "|" .. text) + table.insert(exitErrors, 1, Details222.Date.GetDateForLogs() .. " | " .. text) table.remove(exitErrors, 11) end @@ -5876,16 +5876,16 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1 if (not Details.gump) then --failed to load the framework tinsert(_detalhes_global.exit_log, "The framework wasn't in Details member 'gump'.") - tinsert(_detalhes_global.exit_errors, 1, currentStep .. "|" .. Details222.Date.GetDateForLogs() .. "|" .. Details.userversion .. "|Framework wasn't loaded|") + tinsert(_detalhes_global.exit_errors, 1, currentStep .. " | " .. Details222.Date.GetDateForLogs() .. " | " .. Details.GetVersionString() .. " | Framework wasn't loaded |") return end local logSaverError = function(errortext) local writeLog = function() _detalhes_global = _detalhes_global or {} - tinsert(_detalhes_global.exit_errors, 1, currentStep .. "|" .. Details222.Date.GetDateForLogs() .. "|" .. Details.userversion .. "|" .. errortext .. "|" .. debugstack()) + tinsert(_detalhes_global.exit_errors, 1, currentStep .. " | " .. Details222.Date.GetDateForLogs() .. " | " .. Details.GetVersionString() .. " | " .. errortext .. " | " .. debugstack()) tremove(_detalhes_global.exit_errors, exitErrorsMaxSize) - addToExitErrors(currentStep .. "|" .. Details222.Date.GetDateForLogs() .. "|" .. Details.userversion .. "|" .. errortext .. "|" .. debugstack()) + addToExitErrors(currentStep .. " | " .. Details222.Date.GetDateForLogs() .. " | " .. Details.GetVersionString() .. " | " .. errortext .. " | " .. debugstack()) end xpcall(writeLog, addToExitErrors) end @@ -5919,7 +5919,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1 else tinsert(_detalhes_global.exit_errors, 1, "not _detalhes.tabela_instancias") tremove(_detalhes_global.exit_errors, exitErrorsMaxSize) - addToExitErrors("not _detalhes.tabela_instancias") + addToExitErrors("not _detalhes.tabela_instancias | " .. Details.GetVersionString()) end --if is in combat during the logout, stop the combat @@ -5940,7 +5940,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1 --user requested a wipe of the full configuration if (Details.wipe_full_config) then tinsert(_detalhes_global.exit_log, "5 - Is a full config wipe.") - addToExitErrors("true: _detalhes.wipe_full_config") + addToExitErrors("true: _detalhes.wipe_full_config | " .. Details.GetVersionString()) _detalhes_global = nil _detalhes_database = nil return