log query can change status of query foreground/background