mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-03-21 17:44:58 -05:00
SAKE: Log provided field info
This commit is contained in:
parent
241ae4894b
commit
4f9916e6b3
|
|
@ -242,6 +242,9 @@ func getMyRecords(moduleName string, profileId uint32, gameInfo common.GameInfo,
|
|||
switch gameInfo.Name + "/" + request.TableID {
|
||||
default:
|
||||
logging.Error(moduleName, "Unknown table")
|
||||
for _, field := range request.Fields.Fields {
|
||||
logging.Info(moduleName, "Field:", aurora.Cyan(field))
|
||||
}
|
||||
return &errorResponse
|
||||
|
||||
case "mariokartwii/FriendInfo":
|
||||
|
|
@ -281,6 +284,9 @@ func updateRecord(moduleName string, profileId uint32, gameInfo common.GameInfo,
|
|||
switch gameInfo.Name + "/" + request.TableID {
|
||||
default:
|
||||
logging.Error(moduleName, "Unknown table")
|
||||
for _, field := range request.Values.RecordFields {
|
||||
logging.Info(moduleName, "Field:", aurora.Cyan(field.Name), "Type:", aurora.Cyan(field.Value.XMLName.Local), "Value:", aurora.Cyan(field.Value.Value.Value))
|
||||
}
|
||||
return &errorResponse
|
||||
|
||||
case "mariokartwii/FriendInfo":
|
||||
|
|
@ -311,6 +317,9 @@ func searchForRecords(moduleName string, gameInfo common.GameInfo, request Stora
|
|||
switch gameInfo.Name + "/" + request.TableID {
|
||||
default:
|
||||
logging.Error(moduleName, "Unknown table")
|
||||
for _, field := range request.Fields.Fields {
|
||||
logging.Info(moduleName, "Field:", aurora.Cyan(field))
|
||||
}
|
||||
return &errorResponse
|
||||
|
||||
case "mariokartwii/FriendInfo":
|
||||
|
|
@ -327,8 +336,6 @@ func searchForRecords(moduleName string, gameInfo common.GameInfo, request Stora
|
|||
return &errorResponse
|
||||
}
|
||||
|
||||
// TODO: Check if the two are friends maybe
|
||||
|
||||
values = []map[string]StorageValue{
|
||||
{
|
||||
"ownerid": uintValue(uint32(ownerId)),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user