Skip to content

Commit d27b475

Browse files
committed
Remove spammy messages
1 parent 9b0ed67 commit d27b475

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/net/gateway_ipc.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,13 @@ static inline void cleanup_power_off_task(void) {
144144
template <std::size_t N>
145145
static inline void run_command_get_output(const std::string &cmd,
146146
std::array<char, N> &buf) {
147-
bm_log_info("%s: running command - %s", __func__, cmd.c_str());
148147
FILE *fp = popen(cmd.c_str(), "r");
149148
if (fp == NULL) {
150149
return;
151150
}
152151

153152
// Only set the buffer if an error did not occur
154153
int err = ferror(fp);
155-
bm_log_info("%s: command - %s returned %d", __func__, cmd.c_str(), err);
156154
if (!err) {
157155
fgets(buf.data(), buf.size(), fp);
158156
// Strip newline if it exists
@@ -187,22 +185,20 @@ static inline void wait_for_hydrotwin(void) {
187185
run_command_get_output(service_active, buf);
188186

189187
// If the process is active, retry
190-
const char *p = buf.data();
191-
bm_log_info("%s: hydrotwin service is active? %s", __func__, p);
192188
if (!strcmp(buf.data(), "active")) {
193189
continue;
194190
}
195191

196192
run_command_get_output(service_return, buf);
197193

198194
// Set exited based on the output of the command
199-
p = buf.data();
200-
bm_log_info("%s: hydrotwin service returned - %s", __func__, p);
201195
const char *eq = strchr(buf.data(), '=');
202196
if (eq) {
203197
exited_code = atoi(eq + 1);
204198
}
205199
}
200+
201+
bm_log_info("%s: hydrotwin service inactive, powering off", __func__);
206202
}
207203

208204
static void request_power_off(void *arg) {

0 commit comments

Comments
 (0)