# HG changeset patch # User Daniel O'Connor # Date 1265854737 -37800 # Node ID e3d2b5500b53367d07e63c2666ffaad10da0ab35 # Parent 9a14029b3782c45c23911fb85ec73b73a70f60ba Missed part of earlier commit to only print the query if -vv is used as well as compiling in the mysql stuff (now that I know -n DTRT) diff -r 9a14029b3782 -r e3d2b5500b53 wh1080.c --- a/wh1080.c Thu Feb 11 12:47:59 2010 +1030 +++ b/wh1080.c Thu Feb 11 12:48:57 2010 +1030 @@ -526,7 +526,6 @@ readings->wind_direction_text, readings->rain - db_previous_rain ); db_previous_rain = readings->rain; /* update our current rainfall XXX fix this */ -#if 0 if (update) /* only if updates set */ { if (mysql_query (mysql, mysql_querytext)) @@ -537,8 +536,8 @@ mysql_errno (mysql) ); } } - else if (verbose) -#endif + else if (verbose > 1) + puts (mysql_querytext); } /*