summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Noll <maan@tuebingen.mpg.de>2016-08-23 13:26:25 +0200
committerAndre Noll <maan@tuebingen.mpg.de>2016-08-23 13:26:25 +0200
commitee132d4f3e81eaaaeee94ceaf9f960c50bc7d448 (patch)
treeea6a25d39d5d7d3bc92060c2219673d45a11489c
parent03918564cf43cfbd4f873f1b9c6ec3ccd15ede91 (diff)
Improve log message for snapshot creation.
The log message that prints the name of the snapshot which is going to be recycled is kind of interesting and deserves the "notice" severity. The "creating new snapshot" message is a bit misleading in case we decided to recycle a snapshot, so drop the word "new".
-rw-r--r--dss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dss.c b/dss.c
index 03ddaf8..4c068c6 100644
--- a/dss.c
+++ b/dss.c
@@ -1157,11 +1157,11 @@ static int rename_resume_snap(int64_t creation_time)
s = find_orphaned_snapshot(&sl);
out:
if (s) {
- DSS_INFO_LOG(("reusing %s snapshot %s\n", why, s->name));
+ DSS_NOTICE_LOG(("recycling %s snapshot %s\n", why, s->name));
ret = dss_rename(s->name, new_name);
}
if (ret >= 0)
- DSS_NOTICE_LOG(("creating new snapshot %s\n", new_name));
+ DSS_NOTICE_LOG(("creating %s\n", new_name));
free(new_name);
free_snapshot_list(&sl);
return ret;