Skip to content

Log exception when KeyValueDelegate.getMountInfo(…) fails #888

@v-ladynev

Description

@v-ladynev

Log an exception after catching it
https://github.com/spring-projects/spring-vault/blob/main/spring-vault-core/src/main/java/org/springframework/vault/core/util/KeyValueDelegate.java#L121C2-L138C1

public MountInfo getMountInfo(String path) {

  MountInfo mountInfo = this.mountInfo.get(path);
  
  if (mountInfo == null) {
	  try {
  
		  mountInfo = doGetMountInfo(path);
	  }
	  catch (RuntimeException e) {
		  mountInfo = MountInfo.unavailable();
	  }
  
	  this.mountInfo.put(path, mountInfo);
  }
  return mountInfo;
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions