Skip to content

Commit a37b7c9

Browse files
Update logf in workspace daemon network
1 parent 6c6a7c9 commit a37b7c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/daemon/workspace/network.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ func RunNetworkServer(ctx context.Context, d *Daemon, errChan chan<- error, wg *
3737
WorkspaceHost: d.Config.Platform.WorkspaceHost,
3838
Client: baseClient,
3939
RootDir: rootDir,
40-
LogF: func(format string, args ...interface{}) {
41-
logger.Infof(format, args...)
40+
LogF: func(format string, args ...any) {
41+
if logger.GetLevel() == logrus.DebugLevel {
42+
logger.Debugf(format, args...)
43+
}
4244
},
4345
}, logger)
4446
if err := networkServer.Start(ctx); err != nil {

0 commit comments

Comments
 (0)