better logging

This commit is contained in:
Ruidy 2024-08-09 14:10:58 +02:00
parent 2b9e5cc7e8
commit cf53dfe3f9
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -25,7 +25,7 @@ type Service struct {
func NewService(ctx context.Context, credJson string, opts ...Option) (*Service, error) { func NewService(ctx context.Context, credJson string, opts ...Option) (*Service, error) {
b := []byte(credJson) b := []byte(credJson)
log.Println(credJson) log.Printf("%+v", credJson)
config, err := google.ConfigFromJSON(b, calendar.CalendarReadonlyScope) config, err := google.ConfigFromJSON(b, calendar.CalendarReadonlyScope)
if err != nil { if err != nil {