Skip to content

Commit f5da81c

Browse files
committed
chore: change sql_log_level to debug, and remove info->debug conversion on the DB::LogQuietener
1 parent 71fd027 commit f5da81c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

example/config.ru

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENV['RACK_ENV'] ||= 'production'
88

99
# Create a real database, and set the credentials for it here
1010
# It is highly recommended to set the encoding to utf8
11-
DATABASE_CREDENTIALS = {adapter: "sqlite", database: "pact_broker_database.sqlite3", :encoding => 'utf8'}
11+
DATABASE_CREDENTIALS = { adapter: "sqlite", database: "pact_broker_database.sqlite3", :encoding => 'utf8', sql_log_level: :debug }
1212

1313
# For postgres:
1414
#

lib/pact_broker/db/log_quietener.rb

-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
module PactBroker
1010
module DB
1111
class LogQuietener < SimpleDelegator
12-
def info *args
13-
__getobj__().debug(*args)
14-
end
15-
1612
def error *args
1713
if error_is_about_table_not_existing?(args)
1814
__getobj__().debug(*reassure_people_that_this_is_expected(args))

0 commit comments

Comments
 (0)