Add some logging to enter/exit of some functions

This commit is contained in:
Jeff Mitchell
2016-06-24 16:10:27 -04:00
parent a7cfb3dcdc
commit ccf36b81f1
2 changed files with 13 additions and 2 deletions

View File

@@ -31,6 +31,8 @@ func pathRoleCreate(b *backend) *framework.Path {
func (b *backend) pathRoleCreateRead(
req *logical.Request, data *framework.FieldData) (*logical.Response, error) {
b.logger.Println("[WARN] postgres/pathRoleCreateRead: enter")
defer b.logger.Println("[WARN] postgres/pathRoleCreateRead: exit")
name := data.Get("name").(string)
// Get the role