mirror of
https://github.com/iritmaximus/workh.git
synced 2026-10-12 19:13:33 +03:00
[Log] Add better logging and a logger
This commit is contained in:
+2
-1
@@ -1,8 +1,9 @@
|
||||
import { createApp } from './app';
|
||||
import { DATA_DIR, PORT } from './config';
|
||||
import { log } from './log';
|
||||
|
||||
const server = createApp().listen(PORT, () => {
|
||||
console.log(`WorkH listening on http://localhost:${PORT} (data: ${DATA_DIR})`);
|
||||
log.info(`WorkH listening on http://localhost:${PORT} (data: ${DATA_DIR})`);
|
||||
});
|
||||
|
||||
// Exit promptly when Kubernetes / Docker stops the container.
|
||||
|
||||
Reference in New Issue
Block a user