Skip to content

Commit abfb3f1

Browse files
committed
disable debug output
1 parent 60df365 commit abfb3f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CMQMaster.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ class CMQMaster { // : public ZeroMQ {
3131
Rf_error("Could not bind port after ", i, " tries");
3232
}
3333
void send_work(SEXP data) {
34-
std::cerr << "setting worker " << cur << " active\n";
34+
// std::cerr << "setting worker " << cur << " active\n";
3535
peer_active[cur] = true;
3636
send(data);
3737
}
3838
void send_shutdown(SEXP data) {
39-
std::cerr << "setting worker " << cur << " inactive\n";
39+
// std::cerr << "setting worker " << cur << " inactive\n";
4040
peer_active[cur] = false;
4141
send(data);
4242
}
@@ -69,14 +69,14 @@ class CMQMaster { // : public ZeroMQ {
6969
memcpy(RAW(msg), content.data(), content.size());
7070
msg = R_unserialize(msg);
7171
} else {
72-
std::cerr << "notify disconnect from " << cur << "\n";
72+
// std::cerr << "notify disconnect from " << cur << "\n";
7373
if (peer_active[cur])
7474
Rf_error("Unexpected worker disconnect: check your logs");
7575
peer_active.erase(cur);
7676
ev = 0;
7777
}
7878

79-
std::cerr << peer_active.size() << " peers\n";
79+
// std::cerr << peer_active.size() << " peers\n";
8080
} while (ev == 0);
8181

8282
return msg;

0 commit comments

Comments
 (0)