Browse Source

SSM: Silence JSON parse error message for HTTP attempts

Luke Dashjr 11 years ago
parent
commit
5594c1539a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      driver-stratum.c

+ 2 - 1
driver-stratum.c

@@ -486,7 +486,8 @@ bool stratumsrv_process_line(struct bufferevent * const bev, const char * const
 	json = JSON_LOADS(ln, &jerr);
 	json = JSON_LOADS(ln, &jerr);
 	if (!json)
 	if (!json)
 	{
 	{
-		applog(LOG_ERR, "SSM: JSON parse error: %s", ln);
+		if (strncmp(ln, "GET ", 4))
+			applog(LOG_ERR, "SSM: JSON parse error: %s", ln);
 		return false;
 		return false;
 	}
 	}