[interchange] BUGFIX: Setting LOG_ERROR_CATALOG to 1 actually prevents logging to catalog
Peter Ajamian <[email protected]>
| Newsgroups | gmane.comp.web.interchange.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 7a9cdde635a7a1427664edd83f49939d308e5b08 Author: Peter Ajamian <[email protected]> Date: Mon Oct 31 23:28:43 2011 +1300 BUGFIX: Setting LOG_ERROR_CATALOG to 1 actually prevents logging to catalog There is a bug where if you set something like this in your catalog.cfg: DatabaseDefault LOG_ERROR_CATALOG 1 ...Interchange actually won't log db errors to the catalog's error.log file. This commit fixes that. lib/Vend/Table/Common.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/lib/Vend/Table/Common.pm b/lib/Vend/Table/Common.pm index f321d66..510a9f5 100644 --- a/lib/Vend/Table/Common.pm +++ b/lib/Vend/Table/Common.pm @@ -1632,7 +1632,7 @@ sub log_error { my $msg = errmsg($tpl, @args); my $ekey = 'table ' . $s->[$CONFIG]{name}; my $cfg = $s->[$CONFIG]; - unless(defined $cfg->{LOG_ERROR_CATALOG} and ! $cfg->{LOG_CATALOG}) { + unless(defined $cfg->{LOG_ERROR_CATALOG} and ! $cfg->{LOG_ERROR_CATALOG}) { logError($msg); } if($cfg->{LOG_ERROR_GLOBAL}) {