在AWS Lambda Function中调试外部软件包

Running aws sam locally and debugging a lambda function that calls an outside package/method. For some reason any debug messages I put in the external package aren't being called. Wondering why that is the case. Any one else run into this?

{
  "errorMessage": "runtime error: invalid memory address or nil pointer dereference",
  "errorType": "errorString",
  "stackTrace": [
    {
      "path": "github.com/aws/aws-lambda-go@v1.6.0/lambda/function.go",
      "line": 27,
      "label": "(*Function).Invoke.func1"
    },
    {
      "path": "runtime/asm_amd64.s",
      "line": 522,
      "label": "call32"
    },
    {
      "path": "runtime/panic.go",
      "line": 513,
      "label": "gopanic"
    },
    {
      "path": "runtime/panic.go",
      "line": 82,
      "label": "panicmem"
    },
    {
      "path": "runtime/signal_unix.go",
      "line": 390,
      "label": "sigpanic"
    },
    {
      "path": "go.uber.org/zap@v1.9.1/logger.go",
      "line": 264,
      "label": "(*Logger).check"
    },
    {
      "path": "go.uber.org/zap@v1.9.1/logger.go",
      "line": 186,
      "label": "(*Logger).Info"
    },
    {
      "path": "github.com/goop/service-wms-snoop/transferorders/handlers.go",
      "line": 76,
      "label": "TransferOrdersPublishHandler"
    },
    {
      "path": "runtime/asm_amd64.s",
      "line": 526,
      "label": "call512"
    },
    {
      "path": "reflect/value.go",
      "line": 447,
      "label": "Value.call"
    },
    {
      "path": "reflect/value.go",
      "line": 308,
      "label": "Value.Call"
    },
    {
      "path": "github.com/aws/aws-lambda-go@v1.6.0/lambda/handler.go",
      "line": 111,
      "label": "newHandler.func1"
    },
    {
      "path": "github.com/aws/aws-lambda-go@v1.6.0/lambda/handler.go",
      "line": 22,
      "label": "lambdaHandler.Invoke"
    },
    {
      "path": "github.com/aws/aws-lambda-go@v1.6.0/lambda/function.go",
      "line": 59,
      "label": "(*Function).Invoke"
    },
    {
      "path": "runtime/asm_amd64.s",
      "line": 523,
      "label": "call64"
    },
    {
      "path": "reflect/value.go",
      "line": 447,
      "label": "Value.call"
    },
    {
      "path": "reflect/value.go",
      "line": 308,
      "label": "Value.Call"
    },
    {
      "path": "net/rpc/server.go",
      "line": 384,
      "label": "(*service).call"
    },
    {
      "path": "runtime/asm_amd64.s",
      "line": 1333,
      "label": "goexit"
    }
  ]
}

The above is the stackTrace. I traced through the handler to find out that it's crashing within the call to an external package/method.