mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-25 09:46:58 +00:00
Stop event emitter from logging data in Prod
This commit is contained in:
1 parent
d85d1111f0
commit
8923101152
1 file changed
+1
-1
+1
-1
@@ -204,7 +204,7 @@ export default async function createApp(vite) {
|
||||
});
|
||||
|
||||
Stream.on('sendUpdate', (event, data)=>{
|
||||
console.log('Event:', event, '\nData:', data);
|
||||
if(isLocalEnvironment) { console.log('Event:', event, '\nData:', data); }
|
||||
res.write(`data: ${JSON.stringify({ ...data, eventType: event })}\n\n`);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user