diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-10-08 09:41:07 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-10-08 09:41:07 -0500 |
| commit | 736dfff36d7f533a69df838eb1594e71cac178b7 (patch) | |
| tree | d3d092182322fdbfd764e9e100e281b3555d25da /src | |
| parent | 8aee9b84a34dd73d5ef42c39e735d3b8d053fab6 (diff) | |
| download | slskd-736dfff36d7f533a69df838eb1594e71cac178b7.tar.gz | |
add hub factory for logs, lower log level
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/lib/hubFactory.js | 6 |
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 |
