transporter icon indicating copy to clipboard operation
transporter copied to clipboard

pick function logs are too verbose

Open kiavashi opened this issue 9 years ago • 2 comments

Problem

The pick() function logs out message.data before and after the transformation, with log.level=info.

This causes a problem for me where the logs become almost double the size of the data I'm transferring, which in my case is 100's of GB. I could change log.level to error, but I need the metric logs, which are also info logs, to track progress.

I also realized this logging seems inconsistent with the other functions (omit, rename, skip, etc...) which don't log anything.

Proposed Options

I'm not sure what the best or right solution is here, but these are some possible options I came up with:

  • change the log level from info to debug
  • remove addition msg property of 'picking...' and '...picked'
  • remove logs from pick altogether

I can submit a PR once I get feedback on the right solution.

kiavashi avatar Apr 26 '17 18:04 kiavashi

@kiavashps thanks for the report!

I'd say change the log level from info to debug as it was definitely put in place for debugging purposes.

jipperinbham avatar Apr 26 '17 19:04 jipperinbham

awesome! will do.

kiavashi avatar Apr 26 '17 20:04 kiavashi