lib/grape/reload/watcher.rb in grape-reload-0.0.2 vs lib/grape/reload/watcher.rb in grape-reload-0.0.3
- old
+ new
@@ -12,15 +12,13 @@
def rack_builder; Grape::RackBuilder end
def logger; Grape::RackBuilder.logger end
def safe_load(file, options={})
- began_at = Time.now
return unless options[:force] || file_changed?(file)
- # return require(file) if feature_excluded?(file)
Storage.prepare(file) # might call #safe_load recursively
- logger.devel((file_new?(file) ? "loading" : "reloading") + "#{file}" )
+ logger.debug((file_new?(file) ? "loading" : "reloading") + "#{file}" )
begin
with_silence{ require(file) }
Storage.commit(file)
update_modification_time(file)
rescue Exception => exception
\ No newline at end of file