3
0
mirror of https://github.com/pragma-/pbot.git synced 2026-03-29 03:28:02 +02:00

applets/QuoteDB.pm: remove debug statements

This commit is contained in:
Pragmatic Software 2026-03-27 23:02:10 -07:00
parent 5195082bd5
commit 557e271293
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 1 additions and 7 deletions

6
applets/QuoteDB.pm vendored
View File

@ -13,8 +13,6 @@ no warnings 'experimental::signatures';
use DBI;
my $debug = 10;
sub new($class, %conf) {
my $self = bless {}, $class;
$self->initialize(%conf);
@ -26,8 +24,6 @@ sub initialize($self, %conf) {
}
sub begin($self) {
print STDERR "Opening quotes SQLite database: $self->{filename}\n" if $debug;
$self->{dbh} = DBI->connect("dbi:SQLite:dbname=$self->{filename}", undef, undef,
{ AutoCommit => 0, AutoInactiveDestroy => 1, RaiseError => 1, PrintError => 0, sqlite_unicode => 1 }) or die $DBI::errstr;
@ -52,8 +48,6 @@ SQL
}
sub end($self) {
print STDERR "Closing quotes SQLite database\n" if $debug;
if(exists $self->{dbh} and defined $self->{dbh}) {
$self->{dbh}->commit();
$self->{dbh}->disconnect();

View File

@ -25,7 +25,7 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4944,
BUILD_REVISION => 4945,
BUILD_DATE => "2026-03-27",
};