citier icon indicating copy to clipboard operation
citier copied to clipboard

How to suppress the citier logging

Open axsuul opened this issue 14 years ago • 1 comments

How do I suppress this output (in the server log and before starting up rails console)?

citier -> tablename (view) ->
citier -> Non Root Class
citier -> table_name ->
citier -> tablename (view) ->

axsuul avatar Jan 05 '12 07:01 axsuul

Here's a copy-paste of an old hack to do this:

# NOTE: this is somewhat hacky, but the first thing citier does is set the value
#       of the +CITIER_DEBUGGING+ constant to +true+ if the rails environment is
#       development. use an environment variable to re-enable
Object.send(:remove_const, :CITIER_DEBUGGING)
CITIER_DEBUGGING = !!(ENV.fetch('CITIER_DEBUGGING', false))

lankz avatar Nov 19 '14 22:11 lankz