Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
默认的 Ruby Sequel 行为是在 INFO 级别记录所有数据库查询(与在 DEBUG 级别记录的 ActiveRecord 不同)。我该如何改变?
以前,使用代理记录器对象相当简单,但有足够多的人要求我实现它。使用 Sequel 的 git master 分支,您现在可以执行以下操作:
DB.sql_log_level = :debug
记录查询时将使用调试方法而不是信息方法。