Remove client.log check

This commit is contained in:
Viktor Liu
2025-10-10 16:17:46 +02:00
parent 34b55c600e
commit 4dadcfd9bd

View File

@@ -130,7 +130,7 @@ func sshFn(cmd *cobra.Command, args []string) error {
cmd.SetOut(cmd.OutOrStdout())
logOutput := "console"
if firstLogFile := util.FindFirstLogPath(logFiles); firstLogFile != "" && firstLogFile != "/var/log/netbird/client.log" {
if firstLogFile := util.FindFirstLogPath(logFiles); firstLogFile != "" {
logOutput = firstLogFile
}
if err := util.InitLog(logLevel, logOutput); err != nil {
@@ -699,7 +699,7 @@ var sshProxyCmd = &cobra.Command{
func sshProxyFn(cmd *cobra.Command, args []string) error {
logOutput := "console"
if firstLogFile := util.FindFirstLogPath(logFiles); firstLogFile != "" && firstLogFile != "/var/log/netbird/client.log" {
if firstLogFile := util.FindFirstLogPath(logFiles); firstLogFile != "" {
logOutput = firstLogFile
}
if err := util.InitLog(logLevel, logOutput); err != nil {