FU: Fix DB reconnect + not setting debug_info()
This commit is contained in:
parent
90881924d4
commit
17584f2b8c
1 changed files with 2 additions and 1 deletions
3
FU.pm
3
FU.pm
|
|
@ -123,6 +123,7 @@ sub query_trace($st,@) {
|
|||
sub _connect_db {
|
||||
$DB = ref $INIT_DB eq 'CODE' ? $INIT_DB->() : FU::Pg->connect($INIT_DB);
|
||||
$DB->query_trace(\&query_trace);
|
||||
$DB
|
||||
}
|
||||
sub init_db($info) {
|
||||
require FU::Pg;
|
||||
|
|
@ -214,7 +215,7 @@ sub _monitor {
|
|||
}
|
||||
|
||||
|
||||
our $debug_info = [];
|
||||
our $debug_info = {};
|
||||
sub debug_info($path, $storage=undef, $history=100) {
|
||||
$debug_info = { path => $path, storage => $storage, history => $history }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue