mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-09 04:57:27 +08:00
[O] Better logging
This commit is contained in:
@@ -56,12 +56,12 @@ class AimeDbRequestHandler(
|
|||||||
val data = msg["data"] as ByteBuf
|
val data = msg["data"] as ByteBuf
|
||||||
val base = getBaseInfo(data)
|
val base = getBaseInfo(data)
|
||||||
val handler = handlers[type] ?: let {
|
val handler = handlers[type] ?: let {
|
||||||
logger.error("AimeDB: Unknown request type: ${type.toString(16)}")
|
logger.error("AimeDB: Unknown request type 0x${type.toString(16)}")
|
||||||
ctx.flush()
|
ctx.flush()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info("AimeDB: Request ${handler.name} for game ${base.gameId}, from keychip ${base.keychipId}")
|
logger.info("AimeDB /${handler.name} : (game ${base.gameId}, keychip ${base.keychipId})")
|
||||||
|
|
||||||
handler.fn(data)?.let { ctx.write(it) }
|
handler.fn(data)?.let { ctx.write(it) }
|
||||||
ctx.flush()
|
ctx.flush()
|
||||||
|
|||||||
Reference in New Issue
Block a user