use DBD::Pg;
use Data::Dumper;
use Mail::Send;
-use Safe;
use Time::ParseDate;
use Storable qw(thaw);
{
$client_conf = thaw $frozen_sconf;
}
-else
-{
- my $container = new Safe;
- my $sconf = $conf;
- unless ($sconf =~ s/.*(\$Script_Config)/$1/ms )
- {
- $sconf = '$Script_Config={};';
- }
- $client_conf = $container->reval("$sconf;");
-}
if ($min_script_version)
{
}
}
-if ($min_web_script_version && ! ($client_conf->{script_version} eq 'REL_4.3'))
+if ($min_web_script_version)
{
$client_conf->{web_script_version} ||= '0.0';
my $cli_ver = $client_conf->{web_script_version} ;
values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
EOSQL
;
+
+
+# this transaction lets us set log_error_verbosity to terse
+# just for the duration of the transaction. That turns off logging the
+# bind params, so all the logs don't get stuffed on the postgres logs
+
+$db->begin_work;
+$db->do("select set_local_error_terse()");
+
+
$sth=$db->prepare($logst);
$sth->bind_param(1,$animal);
$sth->execute;
$sth->finish;
+
+
my $logst2 = <<EOSQL;
insert into build_status_log
"$stage_interval seconds");
}
-
$sth->finish;
+$db->commit;
+
my $prevst = <<EOSQL;
select coalesce((select distinct on (snapshot) stage