-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance logging around snapshot create/delete #56
Enhance logging around snapshot create/delete #56
Conversation
Checked commit agrare@5b615bc with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 lib/VolumeManager/VolMgrPlatformSupportLinux.rb
|
else | ||
$log.debug "VolMgrPlatformSupportLinux.postMount: removing snapshot snMor = \"#{@snMor}\"" | ||
$log.debug "#{log_prefix}: removing snapshot snMor = \"#{@snMor}\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this at least info to coincide with the call in preMount.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking the pre/post symmetry was that they both logged to info the result after the operation:
$log.info "VolMgrPlatformSupportLinux.preMount: VM snapshot [#{@snMor}] created in [#{Time.now - st}] seconds"
and
$log.info "#{log_prefix}: VM snapshot [#{@snMor}] removed"
But I can just make this info.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or we can add a INFO -- Creating snapshot
to preMount, thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh you're right @agrare I didn't see the second line.
Log the snapshot ref to INFO for both create and delete https://bugzilla.redhat.com/show_bug.cgi?id=1549299
5b615bc
to
3a6b468
Compare
@roliveri just amended the commit to include the BZ link |
Fine backport (to manageiq-gems-pending repo) details:
|
@miq-bot add_label fine/backported |
Log the snapshot ref to INFO for both create and delete
https://bugzilla.redhat.com/show_bug.cgi?id=1549299