...

Source file src/github.com/launchdarkly/go-server-sdk/v6/internal/log_messages.go

Documentation: github.com/launchdarkly/go-server-sdk/v6/internal

     1  package internal
     2  
     3  import (
     4  	"fmt"
     5  	"os"
     6  )
     7  
     8  // This file contains helper functions for generating various kinds of standardized log warnings/errors.
     9  // In some cases, these need to be written directly to os.Stderr instead of using our ldlog.Loggers API
    10  // because they are for conditions where we don't have access to any configured SDK components.
    11  
    12  // LogErrorNilPointerMethod prints a message to os.Stderr to indicate that the application tried to call
    13  // a method on a nil pointer receiver.
    14  func LogErrorNilPointerMethod(typeName string) {
    15  	fmt.Fprintf(os.Stderr, "[LaunchDarkly] ERROR: tried to call a method on a nil pointer of type *%s\n", typeName)
    16  }
    17  

View as plain text