mage
mage copied to clipboard
sh: Allow disabling of `run` log call
https://github.com/magefile/mage/blob/v1.9.0/sh/cmd.go#L129 executes a log statement that cannot be overridden. The only means of stopping this would be to call log.SetOutput()
and modify this globally.
It would be nice if sh/
would allow setting a logger (even as a package global would be fine IMHO) so the logging could be controlled/intercepted.
Hmm, yeah, this is a good point.
@natefinch how would you feel about just removing this line for now? since it potentially also is a security concern, as it might print secrets to the console via cmd args.