lib/yaml_parse.rb in forj-0.0.21 vs lib/yaml_parse.rb in forj-0.0.22

- old
+ new

@@ -14,14 +14,21 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'yaml' +require_relative 'log.rb' +include Logging # # YamlParse module # module YamlParse def get_values(path_to_yaml) - YAML.load_file(path_to_yaml) + begin + Logging.info('getting values from catalog.yaml, this will be a service catalog.forj.io') + YAML.load_file(path_to_yaml) + rescue => e + Logging.error(e.message) + end end end