diff --git a/atom b/atom index 2fdccd1..9edc664 100755 --- a/atom +++ b/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() {