Skip to content

Commit e20e86f

Browse files
committed
fix: file formatting
1 parent 70e681f commit e20e86f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,18 @@ export const cache: cache = {
3838
// Tosu WebSocket connection
3939
const DEFAULT_HOST = window.location.host;
4040
const wsManager = new WebSocketManager(DEFAULT_HOST);
41+
const SETTINGS_LOG_PREFIX = "[SETTINGS]";
4142
// Initialize WebSocket connection
4243

44+
console.log(`${SETTINGS_LOG_PREFIX} Requesting settings for path`, window?.COUNTER_PATH);
4345
wsManager.sendCommand("getSettings", encodeURI(<string>window.COUNTER_PATH));
4446
wsManager.commands((data: CommandData) => {
4547
try {
4648
const { command, message } = data;
4749
console.log("[WEBSOCKET] Received command:", command, "with data:", message);
4850

4951
if (command === "getSettings") {
52+
console.log(`${SETTINGS_LOG_PREFIX} Received settings payload`);
5053
updateSettings(message);
5154
}
5255
} catch (error) {

0 commit comments

Comments
 (0)