refactor: add persistence groundwork and structured logging
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import * as amqp from "amqplib";
|
||||
import { getLogger } from "./logger";
|
||||
|
||||
const logger = getLogger("CommandService");
|
||||
|
||||
export class CommandService {
|
||||
|
||||
@@ -27,8 +29,8 @@ export class CommandService {
|
||||
);
|
||||
|
||||
|
||||
console.log(
|
||||
"Command gesendet:",
|
||||
logger.debug(
|
||||
"Command sent",
|
||||
command
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user