From 3ee86a57f328530707974288e9db87b7c05283f9 Mon Sep 17 00:00:00 2001
From: Benoit Verkindt <benoit.verkindt@gmail.com>
Date: Fri, 10 Nov 2017 01:22:06 -0800
Subject: [PATCH] rpc: warn on WebSocket origin mismatch (#15451)

Fixes #15373
---
 rpc/websocket.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rpc/websocket.go b/rpc/websocket.go
index 5f9593a43..4214fc86a 100644
--- a/rpc/websocket.go
+++ b/rpc/websocket.go
@@ -83,7 +83,7 @@ func wsHandshakeValidator(allowedOrigins []string) func(*websocket.Config, *http
 		if allowAllOrigins || origins.Has(origin) {
 			return nil
 		}
-		log.Debug(fmt.Sprintf("origin '%s' not allowed on WS-RPC interface\n", origin))
+		log.Warn(fmt.Sprintf("origin '%s' not allowed on WS-RPC interface\n", origin))
 		return fmt.Errorf("origin %s not allowed", origin)
 	}
 
-- 
GitLab