mirror of
https://github.com/unraid/api.git
synced 2026-01-11 19:20:09 -06:00
chore: add debug logging to utils
This commit is contained in:
@@ -79,6 +79,12 @@ export const getServers = async (): Promise<Server[]> => {
|
||||
// Get first server's owner object
|
||||
const owner = servers[0].owner;
|
||||
|
||||
try {
|
||||
throw new Error('THIS_HERE');
|
||||
} catch (error: unknown) {
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
// Publish owner event
|
||||
await pubsub.publish('owner', {
|
||||
owner
|
||||
|
||||
Reference in New Issue
Block a user