Patch level : 12.0 nopatch
Files correlati : Commento : Aggiunto stack trace in caso di eccezione nel file stack.log
This commit is contained in:
parent
04e35d8c30
commit
7f062427f4
@ -755,13 +755,18 @@ void execute_transactions(TArray & transactions, TLog_report & log, bool interac
|
||||
pref.ext("");
|
||||
while (isdigit(pref[pref.len() - 1]))
|
||||
pref.rtrim(1);
|
||||
|
||||
int totalTransaction = 0;
|
||||
|
||||
while (i >= 0)
|
||||
{
|
||||
TRACE("Salvataggio registrazione %d", i);
|
||||
TRACE("Salvataggio registrazione %d - %s = %s %s starts with %s", i , (const char*)t.executer(), (const char*)table, (const char*)t.name(), (const char*)pref);
|
||||
if (t.executer() == table && t.name().starts_with(pref))
|
||||
{
|
||||
t.write();
|
||||
processed.set(i);
|
||||
totalTransaction++;
|
||||
TRACE("Got it %d", totalTransaction);
|
||||
}
|
||||
i = transactions.succ(i);
|
||||
while (processed[i])
|
||||
@ -773,6 +778,8 @@ void execute_transactions(TArray & transactions, TLog_report & log, bool interac
|
||||
TString app;
|
||||
|
||||
if (file2app(table, app))
|
||||
{
|
||||
if (totalTransaction > 0)
|
||||
{
|
||||
TFilename filemask(pref);
|
||||
TString_array files;
|
||||
@ -784,10 +791,11 @@ void execute_transactions(TArray & transactions, TLog_report & log, bool interac
|
||||
app << " -u" << user();
|
||||
TExternal_app cmd(app);
|
||||
|
||||
TRACE("Aggiornamento registrazione %d", i);
|
||||
TRACE("Aggiornamento registrazioni");
|
||||
cmd.run();
|
||||
TRACE("Fine aggiornamento registrazione");
|
||||
list_files(filemask, files);
|
||||
TRACE("Aggiornamneto log");
|
||||
TRACE("Aggiornamento log");
|
||||
FOR_EACH_ARRAY_ROW(files, r, str)
|
||||
{
|
||||
TTransaction t(*str);
|
||||
@ -808,6 +816,7 @@ void execute_transactions(TArray & transactions, TLog_report & log, bool interac
|
||||
}
|
||||
remove_files(filemask, false);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
TString msg(TR("Esecutore sconosciuto per le transazioni sul file "));
|
||||
|
Loading…
x
Reference in New Issue
Block a user