package cmd import ( "context" "fmt" "strings" "time" "github.com/spf13/cobra" "google.golang.org/grpc/status" "github.com/netbirdio/netbird/client/proto" ) var debugCmd = &cobra.Command{ Use: "debug", Short: "Debugging commands", Long: "Provides commands for debugging and logging control within the Netbird daemon.", } var debugBundleCmd = &cobra.Command{ Use: "bundle", Example: " netbird debug bundle", Short: "Create a debug bundle", Long: "Generates a compressed archive of the daemon's logs and status for debugging purposes.", RunE: debugBundle, } var logCmd = &cobra.Command{ Use: "log", Short: "Manage logging for the Netbird daemon", Long: `Commands to manage logging settings for the Netbird daemon, including ICE, gRPC, and general log levels.`, } var logLevelCmd = &cobra.Command{ Use: "level ", Short: "Set the logging level for this session", Long: `Sets the logging level for the current session. This setting is temporary and will revert to the default on daemon restart. Available log levels are: panic: for panic level, highest level of severity fatal: for fatal level errors that cause the program to exit error: for error conditions warn: for warning conditions info: for informational messages debug: for debug-level messages trace: for trace-level messages, which include more fine-grained information than debug`, Args: cobra.ExactArgs(1), RunE: setLogLevel, } var forCmd = &cobra.Command{ Use: "for