debug >= 3: log SQL queries
This commit is contained in:
parent
dc23c37c06
commit
7a036da04b
7
atom
7
atom
@ -106,7 +106,7 @@ getConfigGeneral() {
|
||||
database="$value"
|
||||
;;
|
||||
debug)
|
||||
#unimplemented
|
||||
(( value > debug )) && debug=$value
|
||||
;;
|
||||
esac
|
||||
}
|
||||
@ -262,6 +262,11 @@ openDatabase() {
|
||||
> "$tempdir/sqlite.out" &
|
||||
exec 3> "$tempdir"/sqlite.in
|
||||
exec 4< "$tempdir"/sqlite.out
|
||||
if (( debug > 2 ))
|
||||
then
|
||||
exec 5>&3
|
||||
exec 3> >(tee -a $tempdir/debug.log >&5)
|
||||
fi
|
||||
}
|
||||
|
||||
closeDatabase() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user