aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-10-08 09:41:07 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-10-08 09:41:07 -0500
commit736dfff36d7f533a69df838eb1594e71cac178b7 (patch)
treed3d092182322fdbfd764e9e100e281b3555d25da
parent8aee9b84a34dd73d5ef42c39e735d3b8d053fab6 (diff)
downloadslskd-736dfff36d7f533a69df838eb1594e71cac178b7.tar.gz
add hub factory for logs, lower log level
-rw-r--r--src/web/src/lib/hubFactory.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/web/src/lib/hubFactory.js b/src/web/src/lib/hubFactory.js
index 0fead578..3281a80c 100644
--- a/src/web/src/lib/hubFactory.js
+++ b/src/web/src/lib/hubFactory.js
@@ -14,7 +14,9 @@ export const createHubConnection = ({ url }) =>
})
.withAutomaticReconnect()
.withHubProtocol(new JsonHubProtocol())
- .configureLogging(LogLevel.Information)
+ .configureLogging(LogLevel.Warning)
.build();
-export const createApplicationHubConnection = () => createHubConnection({ url: `${rootUrl}/hub/application` }); \ No newline at end of file
+export const createApplicationHubConnection = () => createHubConnection({ url: `${rootUrl}/hub/application` });
+
+export const createLogsHubConnection = () => createHubConnection({ url: `${rootUrl}/hub/logs` }); \ No newline at end of file