Fix logQuery to care about logQueriesMax, in order to not have it overflow memory etc when used in long-running shells
Fix logQuery to care about logQueriesMax, in order to not have it overflow memory etc when used in long-running shells

davidpersson/queue,serpsapp/queue