File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ app = PactBroker::App.new do | config |
27
27
# change these from their default values if desired
28
28
# config.log_dir = "./log"
29
29
# config.auto_migrate_db = true
30
- config . database_connection = Sequel . connect ( DATABASE_CREDENTIALS . merge ( :logger => config . logger ) )
30
+ config . database_connection = Sequel . connect ( DATABASE_CREDENTIALS . merge ( :logger => PactBroker :: DB :: LogQuietener . new ( config . logger ) ) )
31
31
end
32
32
33
33
run app
Original file line number Diff line number Diff line change
1
+ # To reduce the noise of the SQL logs, this class changes INFO
2
+ # logs to DEBUG, and changes the ERROR logs that occur when
3
+ # Sequel doesn't know if a table/view exists or not to DEBUG,
4
+ # so that they don't freak newbies out when they start up the
5
+ # broker for the first time.
6
+
1
7
require 'delegate'
2
8
3
9
module PactBroker
You can’t perform that action at this time.
0 commit comments