lib/wolf_core/utils/logging_utils.rb
module WolfCore module LoggingUtils def log_object(object) case object when Hash, Array, OpenStruct object = object.to_h if object.instance_of?(OpenStruct) puts object.to_json when Object pp object else puts object end end end end