Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve some logging
  • Loading branch information
jonjensen committed Feb 22, 2018
1 parent d251b9b commit e066d5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Vend/Table/DBI.pm
Expand Up @@ -1180,7 +1180,7 @@ sub alter_column {
};

if($@) {
$s->log_error( "'%s' failed. Error: %s", $template,);
$s->log_error("'%s' failed. Error: %s", $template, $@);
return undef;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/Vend/Table/DBI_CompositeKey.pm
Expand Up @@ -446,7 +446,7 @@ sub set_slice {
}

#::logDebug("exists=$exists set_slice query: $sql");
#::logDebug("set_slice key/fields/values:\nkey=$key\n" . ::uneval($fary, $vary));
#::logDebug("set_slice key/fields/values:\n" . ::uneval($key, $fary, $vary));

my $val;
eval {
Expand Down Expand Up @@ -761,7 +761,7 @@ sub record_exists {
$status = defined $s->[$DBI]->selectrow_array($query, undef, @key);
};
if($@) {
$s->log_error("Bad execution of record_exists query");
$s->log_error("Bad execution of record_exists query: $@");
return undef;
}
#::logDebug("record_exists status=$status");
Expand Down

0 comments on commit e066d5c

Please sign in to comment.