Added logging an error status code when stream manager can not connect to tmaster (#3208)
diff --git a/heron/stmgr/src/cpp/manager/tmaster-client.cpp b/heron/stmgr/src/cpp/manager/tmaster-client.cpp
index b4f2c7b..3046ba5 100644
--- a/heron/stmgr/src/cpp/manager/tmaster-client.cpp
+++ b/heron/stmgr/src/cpp/manager/tmaster-client.cpp
@@ -116,7 +116,7 @@
return;
}
LOG(ERROR) << "Could not connect to tmaster at " << get_clientoptions().get_host() << ":"
- << get_clientoptions().get_port() << std::endl;
+ << get_clientoptions().get_port() << ", Status code: " << _status << std::endl;
LOG(INFO) << "Will retry again..." << std::endl;
// Shouldn't be in a state where a previous timer is not cleared yet.
if (reconnect_timer_id == 0) {