Long standing bug where it wasn't skipping snapdirs if !debug
For debug output use stderr like all other cases
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
24f06598966319a62fa58a5831d9741fac1d471b)
if (op != "list-pgs" && tmppgid != pgid) {
continue;
}
- if (snap != CEPH_NOSNAP && debug) {
- cout << "skipping snapped dir " << *it
+ if (snap != CEPH_NOSNAP) {
+ if (debug)
+ cerr << "skipping snapped dir " << *it
<< " (pg " << pgid << " snap " << snap << ")" << std::endl;
continue;
}