lib/hyla/commands/build.rb in hyla-1.0.7.pre.7 vs lib/hyla/commands/build.rb in hyla-1.0.7.pre.8
- old
+ new
@@ -11,13 +11,13 @@
#
#
def build(training, options)
source = options['source']
destination = options['destination']
- Hyla.logger.info "Source: ", source
- Hyla.logger.info "Destination: ", destination
- print Hyla.logger.formatted_topic "Generating..."
+ Hyla.logger2.info "Source: ", source
+ Hyla.logger2.info "Destination: ", destination
+ print Hyla.logger2.formatted_topic "Generating..."
self.process_training(training)
puts "done."
end
# Static: Run Training#process and catch errors
@@ -27,12 +27,12 @@
# Returns nothing
def self.process_training(training)
training.process
rescue Hyla::FatalException => e
puts
- Hyla.logger.error "ERROR:", "YOUR TRAINING COULD NOT BE BUILT:"
- Hyla.logger.error "", "------------------------------------"
- Hyla.logger.error "", e.message
+ Hyla.logger2.error "ERROR:", "YOUR TRAINING COULD NOT BE BUILT:"
+ Hyla.logger2.error "", "------------------------------------"
+ Hyla.logger2.error "", e.message
exit(1)
end
end # class
end # module Commands
\ No newline at end of file