thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From si chen <>
Subject how to avoid a password field in toString
Date Wed, 09 Feb 2011 23:03:01 GMT
I am using thrift to pass a struct like below:

struct User {
1: string user;
2: string password;

It works as expected, however, the "toString" method generated by thrift
always add the password field in plain text, how can I instruct thrift NOT
to include password field in toString method? I mean, if I log the struct, I
don't want to see the password being printed to log in plain text.

User u;


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message