Skip to content

Commit

Permalink
BUGFIX: Setting LOG_ERROR_CATALOG to 1 actually prevents logging to c…
Browse files Browse the repository at this point in the history
…atalog

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.
  • Loading branch information
pajamian committed Oct 31, 2011
1 parent 69d52e5 commit 7a9cdde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Vend/Table/Common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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}) {
Expand Down

0 comments on commit 7a9cdde

Please sign in to comment.