Code of the Day:

Code of the Day:  

LogQuery('ADSQueryExecute: ' + QueryText, LogQueries and (not DontLogQuery));

Comments

  1. "LogQueries and (not DontLogQuery)"

    Excellent :D

    ReplyDelete
  2. Sounds logical if you replace 'and' by 'or'

    ReplyDelete
  3. Seems like common practice.

    I once stumbled upon "if gDBRefresh and not gNoDBRefresh". The human brain ain't good at resolving that equation.

    ReplyDelete
  4. LOL!
    Bet it's a case of awful property name :)
    It happens sometimes, you have a general setting for logging and then, in some cases, you have another one for specific queries you may want to opt in or out of logging.
    Stamp a bad property name on it and that's precisely what you end up with :)

    A

    ReplyDelete

Post a Comment