Unknown W. Brackets wrote: > If you always want the SQL stuff run, you have to do it separately. > > But it goes back to this: > > if (logging) > log(RunSQLStuff()); > replace RunSQLStuff() with VaryLongRunningFunction()