@@ -42,7 +42,7 @@ func main() {
4242}
4343
4444func 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 )
4646 return nil
4747}
4848
@@ -52,8 +52,8 @@ func echoHandler(ctx context.Context, in *common.InvocationEvent) (out *common.C
5252 return
5353 }
5454 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 ,
5757 )
5858 out = & common.Content {
5959 Data : in .Data ,
@@ -64,6 +64,6 @@ func echoHandler(ctx context.Context, in *common.InvocationEvent) (out *common.C
6464}
6565
6666func 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 )
6868 return nil , nil
6969}
0 commit comments