log(main) add log event for executing pre-command hooks
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Brian Tiger Chow committed
Nov 22, 2014 at 21:00 UTC
9e6177ef2ecad5f43b899148621b79aa68ceb8c7
1 file changed
+1
cmd/ipfs/main.go
+1
@@ -247,6 +247,7 @@ func (i *cmdInvocation) requestedHelp() (short bool, long bool, err error) {
247
248
func callPreCommandHooks(ctx context.Context, details cmdDetails, req cmds.Request, root *cmds.Command) error {
249
250
+ log.Event(ctx, "callPreCommandHooks", &details)
251
log.Debug("Calling pre-command hooks...")
252
253
// some hooks only run when the command is executed locally