From 58ff12421092878c767c2a601dcb44ef95977fcb Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Tue, 2 Sep 2014 20:13:00 +0800 Subject: [PATCH] Fix messages for remove, replace callbacks --- callback.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/callback.go b/callback.go index b82efd8f..979fc6eb 100644 --- a/callback.go +++ b/callback.go @@ -66,14 +66,14 @@ func (cp *callback_processor) Register(name string, fc func(scope *Scope)) { } func (cp *callback_processor) Remove(name string) { - fmt.Printf("[info] removing callback `%v` from %v\n", cp.name, fileWithLineNum()) + fmt.Printf("[info] removing callback `%v` from %v\n", name, fileWithLineNum()) cp.name = name cp.remove = true cp.callback.sort() } func (cp *callback_processor) Replace(name string, fc func(scope *Scope)) { - fmt.Printf("[info] replacing callback `%v` from %v\n", cp.name, fileWithLineNum()) + fmt.Printf("[info] replacing callback `%v` from %v\n", name, fileWithLineNum()) cp.name = name cp.processor = &fc cp.replace = true