Set up enhanced logging of transactions.
Note that now, all transactions are logged, whether they fail or not. Failed transactions are logged with status canceled. ITransact transactions have additional data logged.
This commit is contained in:
parent
215914590a
commit
d2e55307ed
6 changed files with 140 additions and 3 deletions
|
|
@ -51,6 +51,8 @@
|
|||
- Added migration utility for Gallery
|
||||
- Removed old .tmpl files from upgrades. ALL templates in upgrades must now
|
||||
be in Packages!
|
||||
- Changed transaction logging in the Commerce system, so that all connection and transaction errors
|
||||
are now logged automatically, but listed as Canceled with the error message as to why.
|
||||
- add: widgetize asset macro. called like so: ^Widget(assetId, width,
|
||||
height, templateId); where assetId is the asset of the widget to
|
||||
widgetize and templateId is the template for the widget itself. If
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ my $quiet; # this line required
|
|||
my $session = start(); # this line required
|
||||
removeOldPhotoGallery($session);
|
||||
speedUp($session);
|
||||
enhanceITransactLogging($session);
|
||||
finish($session); # this line required
|
||||
|
||||
|
||||
|
|
@ -33,6 +34,17 @@ sub speedUp {
|
|||
$session->db->write("alter table assetData add index assetId_status (assetId,status)");
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add more data to the transaction table
|
||||
sub enhanceITransactLogging {
|
||||
my $session = shift;
|
||||
print "\tAdd additional ITransact data to the transaction table..." unless $quiet;
|
||||
$session->db->write('alter table transaction add column XID varchar(100) default null');
|
||||
$session->db->write('alter table transaction add column authcode varchar(100) default null');
|
||||
$session->db->write('alter table transaction add column message text default null');
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
sub removeOldPhotoGallery {
|
||||
my $session = shift;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue