Commit 13a92bbd3c3fd28480673110a2974aecd2fe56c7

Con Kolivas 2012-08-06T18:33:50

Merge pull request #290 from kanoi/api api.c update API start message and include port number

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/api.c b/api.c
index 75676ec..557aa5e 100644
--- a/api.c
+++ b/api.c
@@ -3241,12 +3241,12 @@ void api(int api_thr_id)
 	}
 
 	if (opt_api_allow)
-		applog(LOG_WARNING, "API running in IP access mode");
+		applog(LOG_WARNING, "API running in IP access mode on port %d", port);
 	else {
 		if (opt_api_network)
-			applog(LOG_WARNING, "API running in UNRESTRICTED access mode");
+			applog(LOG_WARNING, "API running in UNRESTRICTED read access mode on port %d", port);
 		else
-			applog(LOG_WARNING, "API running in local access mode");
+			applog(LOG_WARNING, "API running in local read access mode on port %d", port);
 	}
 
 	io_buffer = malloc(MYBUFSIZ+1);