How to hide default notices in the log.

asked 2016-08-30 03:14:53 -0600

SansIce gravatar image

I have a situation where I need to hide the passwords while printing the log. In the heira yaml file the passwords are encoded using eyaml but while reading them as a newproperty they are written in the console and log.

Log: Notice: /Stage[main]/profile::db/setupdb[DBNAME]/dbadminpwd: defined 'dbadmin_pwd' as 'WhatEverString'

Any Possible way to either hide it or remove all such notices while reading parameters should not hurt. Things like log level or somthing should also help

edit retag flag offensive close merge delete


If you were worried about a file that contains passwords, the file resource has the show_diff parameter which you can disable. But given your example above, it looks like you have a resource that represents the password. Can you provide a code snippet of how you are creating your profile?

DarylW gravatar imageDarylW ( 2016-08-30 07:50:57 -0600 )edit