Skip to content

Commit f873497

Browse files
author
MB Burch
committed
Add logs troubleshooting
1 parent b4df562 commit f873497

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/baton-linear/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ var version = "dev"
1919
func main() {
2020
ctx := context.Background()
2121

22+
fmt.Fprintln(os.Stdout, "=== MAIN STARTED ===")
23+
fmt.Fprintln(os.Stdout, "BATON_LOG_LEVEL: ", os.Getenv("BATON_LOG_LEVEL"))
24+
2225
_, cmd, err := configschema.DefineConfiguration(ctx, "baton-linear", getConnector, cfg.Config)
2326
if err != nil {
2427
fmt.Fprintln(os.Stderr, err.Error())
@@ -36,6 +39,9 @@ func main() {
3639

3740
func getConnector(ctx context.Context, lc *cfg.Linear) (types.ConnectorServer, error) {
3841
l := ctxzap.Extract(ctx)
42+
l.Info("test info log from getConnector")
43+
l.Debug("test debug log from getConnector")
44+
3945
cb, err := connector.New(ctx, lc.ApiKey)
4046
if err != nil {
4147
l.Error("error creating connector", zap.Error(err))

0 commit comments

Comments
 (0)