mirror of
https://github.com/Sithranduil/srcds_exporter.git
synced 2025-07-23 17:28:00 +02:00
fix: add some logs
This commit is contained in:
@@ -21,8 +21,13 @@ export default {
|
||||
},
|
||||
async rconCommand(client, command) {
|
||||
try {
|
||||
return client.send(command);
|
||||
console.log(`[${client.host}:${client.port}] rcon command :`, command);
|
||||
const res = await client.send(command);
|
||||
console.log(`[${client.host}:${client.port}] rcon commands result: ${command}`);
|
||||
console.log(res);
|
||||
return res;
|
||||
} catch (err) {
|
||||
|
||||
throw err;
|
||||
}
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user