diff --git a/sake/storage.go b/sake/storage.go index 4567a4b..6c34770 100644 --- a/sake/storage.go +++ b/sake/storage.go @@ -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)),