APISonar


ghidra.server.Repository.log

> ghidra > server > Repository > log
ghidra APIs server APIs Repository APIs log APIs

Example 1
private Repository repository;

	public LocalManagedBufferFile openDatabase(int version, int minChangeDataVer, String user)
			throws IOException {
		synchronized (fileSystem) {
			validate();
			repository.validateReadPrivilege(user);
			LocalManagedBufferFile bf = databaseItem.open(version, minChangeDataVer);
			repository.log(getPathname(), "version " +
				(version < 0 ? databaseItem.getCurrentVersion() : version) + " opened read-only",
				user);
			return bf;
		}
	}