@@ -42,7 +42,7 @@ func main() {
42
42
}
43
43
44
44
func eventHandler (ctx context.Context , e * common.TopicEvent ) error {
45
- log .Printf ("event - PubsubName:%s, Topic:%s, ID:%s, Data: %v " , e .PubsubName , e .Topic , e .ID , e .Data )
45
+ log .Printf ("event - PubsubName:%s, Topic:%s, ID:%s, Data: %s " , e .PubsubName , e .Topic , e .ID , e .Data )
46
46
return nil
47
47
}
48
48
@@ -52,8 +52,8 @@ func echoHandler(ctx context.Context, in *common.InvocationEvent) (out *common.C
52
52
return
53
53
}
54
54
log .Printf (
55
- "echo - ContentType:%s, Verb:%s, QueryString:%s, %+v " ,
56
- in .ContentType , in .Verb , in .QueryString , string ( in .Data ) ,
55
+ "echo - ContentType:%s, Verb:%s, QueryString:%s, %s " ,
56
+ in .ContentType , in .Verb , in .QueryString , in .Data ,
57
57
)
58
58
out = & common.Content {
59
59
Data : in .Data ,
@@ -64,6 +64,6 @@ func echoHandler(ctx context.Context, in *common.InvocationEvent) (out *common.C
64
64
}
65
65
66
66
func runHandler (ctx context.Context , in * common.BindingEvent ) (out []byte , err error ) {
67
- log .Printf ("binding - Data:%v , Meta:%v" , in .Data , in .Metadata )
67
+ log .Printf ("binding - Data:%s , Meta:%v" , in .Data , in .Metadata )
68
68
return nil , nil
69
69
}
0 commit comments