| 75 | } |
| 76 | |
| 77 | void Channel::Send(const std::string& message) { |
| 78 | if (stderr_) fprintf(stderr, "%s\n", message.c_str()); |
| 79 | if (file_ && os_.is_open()) os_ << message << "\n"; |
| 80 | // TODO(wangwei) flush |
| 81 | } |
| 82 | |
| 83 | void Channel::Send(const google::protobuf::Message& message) { |
| 84 | if (stderr_) fprintf(stderr, "%s\n", message.DebugString().c_str()); |
no outgoing calls