Crank up logging

This commit is contained in:
Heikki Linnakangas
2022-03-10 15:45:50 +02:00
parent d19a293e7e
commit dd56eeefbf
4 changed files with 7 additions and 7 deletions

View File

@@ -1069,10 +1069,9 @@ impl LayeredTimeline {
// Recurse into ancestor if needed
if Lsn(cont_lsn.0 - 1) <= timeline.ancestor_lsn {
trace!(
info!(
"going into ancestor {}, cont_lsn is {}",
timeline.ancestor_lsn,
cont_lsn
timeline.ancestor_lsn, cont_lsn
);
let ancestor = timeline.get_ancestor_timeline()?;
timeline_owned = ancestor;

View File

@@ -583,8 +583,6 @@ impl DeltaLayerWriter {
}),
};
trace!("created delta layer {}", &layer.path().display());
// Rename the file to its final name
//
// Note: This overwrites any existing file. There shouldn't be any.
@@ -598,7 +596,9 @@ impl DeltaLayerWriter {
lsn_range: self.lsn_range,
},
);
std::fs::rename(self.path, final_path)?;
std::fs::rename(self.path, &final_path)?;
info!("created delta layer {}", final_path.display());
Ok(layer)
}

View File

@@ -481,7 +481,7 @@ impl ImageLayerWriter {
index: HashMap::new(),
}),
};
trace!("created image layer {}", layer.path().display());
info!("created image layer {}", layer.path().display());
self.finished = true;

View File

@@ -594,6 +594,7 @@ impl<'a, R: Repository> DatadirTimelineWriter<'a, R> {
// - update relish header with size
pub fn put_rel_creation(&mut self, rel: RelTag, nblocks: BlockNumber) -> Result<()> {
info!("CREATE REL: {}, {} blocks at {}", rel, nblocks, self.lsn);
// Add it to the directory entry
let dir_key = rel_dir_to_key(rel.spcnode, rel.dbnode);
let buf = self.get(dir_key)?;