drf-tracking icon indicating copy to clipboard operation
drf-tracking copied to clipboard

Toggle logging of certain fields

Open whippersnapper opened this issue 7 years ago • 3 comments

Is there currently a way to enable/disable (toggling) logging of certain fields? For example, if I didn't want to capture the logging of response field. Would that be possible currently? TIA.

whippersnapper avatar Aug 06 '17 03:08 whippersnapper

@whippersnapper As far as I know there isn't a way to set that via a settings file. However, I can strip out the response data via Django model's pre_save signal.

avelis avatar Aug 06 '17 15:08 avelis

@whippersnapper The best suggestion for this kind of approach is to use a pre_save signal, or make a PR that creates a pre-save-processor before the actual save.

avelis avatar Aug 06 '17 15:08 avelis

@avelis Thanks for the fast feedback.

whippersnapper avatar Aug 06 '17 19:08 whippersnapper