# File lib/puppet/application/apply.rb, line 136
136:   def setup
137:     exit(Puppet.settings.print_configs ? 0 : 1) if Puppet.settings.print_configs?
138: 
139:     # If noop is set, then also enable diffs
140:     Puppet[:show_diff] = true if Puppet[:noop]
141: 
142:     Puppet::Util::Log.newdestination(:console) unless options[:logset]
143:     client = nil
144:     server = nil
145: 
146:     trap(:INT) do
147:       $stderr.puts "Exiting"
148:       exit(1)
149:     end
150: 
151:     if options[:debug]
152:       Puppet::Util::Log.level = :debug
153:     elsif options[:verbose]
154:       Puppet::Util::Log.level = :info
155:     end
156:   end