mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-17 02:29:10 +00:00
[server/rpcrepl] add bot authorization to RPC repl, also log rpcs.
This commit is contained in:
parent
aeac74ae98
commit
a5f2b328d3
2 changed files with 10 additions and 3 deletions
|
@ -53,6 +53,10 @@ export class Logger {
|
|||
}
|
||||
}
|
||||
|
||||
rpc (call: string, ...data: any) {
|
||||
console.log(chalk.redBright.bold`RPC` + chalk.redBright(` ${call}():`), data)
|
||||
}
|
||||
|
||||
sql (logger: Logger, ...data: any) {
|
||||
if (logger.debugOn && !logger.quietSql) {
|
||||
console.log(chalk.bold('DEBUG SQL:\n '), data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue