Is there a way to obfuscate some fields when serializing a model for logging?
ribesg
04/19/2019, 10:55 AM
My currently planned solution is to convert to JsonObject and then do some recursive work manually every time, seems heavy just for logging
n
Nikky
04/19/2019, 11:21 AM
what does obfuscate mean for you ?
Nikky
04/19/2019, 11:21 AM
renaming keys? or changing content?
r
ribesg
04/19/2019, 12:48 PM
Changing content of keys named “password” or something like that
r
Riccardo Montagnin
04/19/2019, 6:09 PM
You can mark them
@Transient
to avoid serializing them
r
r4zzz4k
04/22/2019, 11:10 PM
Didn't touch this part of the framework yet, but I'd try to go for adding custom type for password field and having two `SerialModule`s for networking and logging, each of them providing own serializer for passwords.