# File src/ruby_supportlib/phusion_passenger/utils.rb, line 83
    def print_exception(current_location, exception, destination = nil)
      if !exception.is_a?(SystemExit)
        data = exception.backtrace_string(current_location)
        if defined?(DebugLogging) && self.is_a?(DebugLogging)
          error(data)
        else
          destination ||= STDERR
          destination.puts(data)
          destination.flush if destination.respond_to?(:flush)
        end
      end
    end