Fix sphinx query logging
Flags