From 5c870b421a2f4fe19ded5a2c7b96a0532b00f7a2 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 21 Jan 2022 20:03:02 +0100 Subject: [PATCH] daemon/images.NewImageService() don't print debug logs These logs were meant to be logged when starting the daemon. Moving the logs to the daemon startup code (which also prints similar messages) instead of having the images service log them. Signed-off-by: Sebastiaan van Stijn --- daemon/daemon.go | 3 +++ daemon/images/service.go | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/daemon.go b/daemon/daemon.go index fce36eef82..65e7b8f409 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -1073,6 +1073,9 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S // used above to run migration. They could be initialized in ImageService // if migration is called from daemon/images. layerStore might move as well. d.imageService = images.NewImageService(imgSvcConfig) + logrus.Debugf("Max Concurrent Downloads: %d", imgSvcConfig.MaxConcurrentDownloads) + logrus.Debugf("Max Concurrent Uploads: %d", imgSvcConfig.MaxConcurrentUploads) + logrus.Debugf("Max Download Attempts: %d", imgSvcConfig.MaxDownloadAttempts) go d.execCommandGC() diff --git a/daemon/images/service.go b/daemon/images/service.go index 85c3bd5d40..b10bd19862 100644 --- a/daemon/images/service.go +++ b/daemon/images/service.go @@ -54,9 +54,6 @@ type ImageServiceConfig struct { // NewImageService returns a new ImageService from a configuration func NewImageService(config ImageServiceConfig) *ImageService { - logrus.Debugf("Max Concurrent Downloads: %d", config.MaxConcurrentDownloads) - logrus.Debugf("Max Concurrent Uploads: %d", config.MaxConcurrentUploads) - logrus.Debugf("Max Download Attempts: %d", config.MaxDownloadAttempts) return &ImageService{ containers: config.ContainerStore, distributionMetadataStore: config.DistributionMetadataStore,