Project

General

Profile

« Previous | Next » 

Revision 9421

bugfix: lib/sh/db.sh: log_sql(): use can_log() instead because the verbosity now gets decremented as the log_level increases, so the threshold to compare to is 0 instead of 2

View differences:

lib/sh/local.sh
43 43
	fi
44 44
	local dir="${dir:-$top_dir}"
45 45
	
46
	local psql_cmd="psql_$(if log_sql; then echo verbose; else echo script; fi)_vegbien"
46
	local psql_cmd="psql_$(if can_log; then echo verbose; else echo script; fi)_vegbien"
47 47
	(cat <<EOF
48 48
\cd $dir
49 49
\set schema "$schema"
lib/sh/db.sh
32 32
fi # load new aliases
33 33
if self_being_included; then
34 34

  
35
log_sql() { test "$verbosity" -ge 2; }
36 35

  
37

  
38 36
### MySQL
39 37

  
40 38
alias set_database=\

Also available in: Unified diff