From 09f59ba3b8f45c1c7490b1374029db1702fa038a Mon Sep 17 00:00:00 2001
From: Andy Green <andy@warmcat.com>
Date: Sun, 29 Oct 2017 16:22:54 +0800
Subject: [PATCH] lwjp-conf: quieten init logging

---
 lib/context.c          | 12 ++++++------
 lib/server/lejp-conf.c |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/lib/context.c b/lib/context.c
index 04c95a15..d79cc242 100644
--- a/lib/context.c
+++ b/lib/context.c
@@ -233,7 +233,7 @@ lws_protocol_init(struct lws_context *context)
 				pvo = pvo1->options;
 
 				while (pvo) {
-					lwsl_notice(
+					lwsl_debug(
 						"    vhost \"%s\", "
 						"protocol \"%s\", "
 						"option \"%s\"\n",
@@ -242,14 +242,14 @@ lws_protocol_init(struct lws_context *context)
 							pvo->name);
 
 					if (!strcmp(pvo->name, "default")) {
-						lwsl_notice("Setting default "
+						lwsl_info("Setting default "
 						   "protocol for vh %s to %s\n",
 						   vh->name,
 						   vh->protocols[n].name);
 						vh->default_protocol_index = n;
 					}
 					if (!strcmp(pvo->name, "raw")) {
-						lwsl_notice("Setting raw "
+						lwsl_info("Setting raw "
 						   "protocol for vh %s to %s\n",
 						   vh->name,
 						   vh->protocols[n].name);
@@ -687,9 +687,9 @@ lws_create_vhost(struct lws_context *context,
 	mounts = info->mounts;
 	while (mounts) {
 		(void)mount_protocols[0];
-		lwsl_notice("   mounting %s%s to %s\n",
-				mount_protocols[mounts->origin_protocol],
-				mounts->origin, mounts->mountpoint);
+		lwsl_info("   mounting %s%s to %s\n",
+			  mount_protocols[mounts->origin_protocol],
+			  mounts->origin, mounts->mountpoint);
 
 		/* convert interpreter protocol names to pointers */
 		pvo = mounts->interpret;
diff --git a/lib/server/lejp-conf.c b/lib/server/lejp-conf.c
index 6de7a5b5..e4191876 100644
--- a/lib/server/lejp-conf.c
+++ b/lib/server/lejp-conf.c
@@ -380,7 +380,7 @@ lejp_vhosts_cb(struct lejp_ctx *ctx, char reason)
 		a->pvo->next = a->info->pvo;
 		a->info->pvo = a->pvo;
 		a->pvo->name = a->p;
-		lwsl_notice("  adding protocol %s\n", a->p);
+		lwsl_info("  adding protocol %s\n", a->p);
 		a->p += n;
 		a->pvo->value = a->p;
 		a->pvo->options = NULL;
-- 
GitLab