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"
|
database="$value"
|
||||||
;;
|
;;
|
||||||
debug)
|
debug)
|
||||||
#unimplemented
|
(( value > debug )) && debug=$value
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@ -262,6 +262,11 @@ openDatabase() {
|
|||||||
> "$tempdir/sqlite.out" &
|
> "$tempdir/sqlite.out" &
|
||||||
exec 3> "$tempdir"/sqlite.in
|
exec 3> "$tempdir"/sqlite.in
|
||||||
exec 4< "$tempdir"/sqlite.out
|
exec 4< "$tempdir"/sqlite.out
|
||||||
|
if (( debug > 2 ))
|
||||||
|
then
|
||||||
|
exec 5>&3
|
||||||
|
exec 3> >(tee -a $tempdir/debug.log >&5)
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
closeDatabase() {
|
closeDatabase() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user