diff --git a/config/watcher.go b/config/watcher.go index f3a6b502ef8..6dd78cb67e5 100644 --- a/config/watcher.go +++ b/config/watcher.go @@ -73,7 +73,7 @@ func newCloudWatcher(ctx context.Context, config *Config, logger logging.Logger) } newConfig, err := readFromCloud(cancelCtx, config, prevCfg, false, checkForNewCert, logger) if err != nil { - logger.Errorw("error reading cloud config", "error", err) + logger.Debugw("error reading cloud config; will try again", "error", err) continue } if cp, err := newConfig.CopyOnlyPublicFields(); err == nil { diff --git a/module/modmanager/manager.go b/module/modmanager/manager.go index 16d2fd3974f..c865171df61 100644 --- a/module/modmanager/manager.go +++ b/module/modmanager/manager.go @@ -348,7 +348,7 @@ func (mgr *Manager) startModule(ctx context.Context, mod *module) error { // create the module's data directory if mod.dataDir != "" { - mgr.logger.Infof("Creating data directory %q for module %q", mod.dataDir, mod.cfg.Name) + mgr.logger.Debugf("Creating data directory %q for module %q", mod.dataDir, mod.cfg.Name) if err := os.MkdirAll(mod.dataDir, 0o750); err != nil { return errors.WithMessage(err, "error while creating data directory for module "+mod.cfg.Name) } @@ -1121,7 +1121,7 @@ func (m *module) startProcess( moduleWorkingDirectory, ok := moduleEnvironment["VIAM_MODULE_ROOT"] if !ok { moduleWorkingDirectory = filepath.Dir(absoluteExePath) - logger.CWarnw(ctx, "VIAM_MODULE_ROOT was not passed to module. Defaulting to module's working directory", + logger.CDebugw(ctx, "VIAM_MODULE_ROOT was not passed to module. Defaulting to module's working directory", "module", m.cfg.Name, "dir", moduleWorkingDirectory) } else { logger.CInfow(ctx, "Starting module in working directory", "module", m.cfg.Name, "dir", moduleWorkingDirectory)