Module: BridgetownDirectus::Utils
- Defined in:
- lib/bridgetown_directus/utils.rb
Class Method Summary collapse
Class Method Details
.log_directus(message) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/bridgetown_directus/utils.rb', line 5 def self.log_directus() if defined?(Bridgetown) && Bridgetown.respond_to?(:logger) Bridgetown.logger.info("Directus") { } elsif ENV["BRIDGETOWN_DIRECTUS_DEBUG"] # Fallback for testing or when Bridgetown is not available puts "[Directus] #{message}" end end |