Comments (5)
Are you able to replicate this with a simple Ecto query where you specify log: false
? Oban isn't doing anything fancy with the verbose
value, it is passing it through as log: true
or log: false
for each query.
from oban.
@sorentwo we can replicate this with:
Ecto.Adapters.SQL.query!(Testapp.Repo, "SELECT 1 AS one", [], log: true)
The log: true
matches the defaults from Oban.Config
from oban.
On a side one, if we supply a log level, instead of true
, the query is logged as expected, overriding the repo config:
Keyword.get(Testapp.Repo.config(), :log)
# false
Ecto.Adapters.SQL.query!(Testapp.Repo, "SELECT 1 AS one", [], log: :info)
# [info] QUERY OK db=0.4ms queue=0.7ms
# SELECT 1 AS one []
The documentation on Ecto.Repo
has the following to say about the :log
option:
the log level used when logging the query with Elixir's Logger. If false, disables
logging for that repository. Defaults to :debug
Is never explicitly said to support true
(like verbose
does here), so maybe oban should follow the same semantics of "log_level or false
" instead of being either "true
and false
"?
from oban.
@lucasmazza Thanks gain. Pushed a patch that prevents this from happening, and encourages a more sensible default.
from oban.
@sorentwo thanks for the always fast and focused patches ❤️
from oban.
Related Issues (20)
- Oban.drain_queue isn't working anymore in test HOT 2
- Oban Pro v1.4 Workflow migration fails on Postgres 13 trigger creation HOT 1
- Tests failing since upgrade from 2.17.7 to 2.17.9 HOT 2
- Test fails when upgrading from 2.17.8 to 2.17.9 HOT 1
- Regression: `Check process ancestry tree for test mode override` commit makes my tests fail HOT 1
- Node name not set from DYNO var with mix release on Heroku HOT 3
- `Oban.Met.Recorder` excessive message queue length HOT 5
- Recommended approach to enqueue a job with a guaranteed minimum delay HOT 1
- Race condition when inserting unique jobs HOT 3
- Support `cancelled` callback in `Oban.Testing.Pro.perform_callback/4` HOT 1
- Support Stream in `Oban.Pro.Workers.Batch.new_batch/2` HOT 3
- Potential issues regarding unique jobs HOT 2
- "Handler "oban.batch" has failed and has been detached" when job is cancelled via oban web HOT 3
- Single DynamicCron with missing worker will crash GenServer and hang all DynamicCrons HOT 1
- Getting oban_pro in github ci stopped working HOT 2
- Support `before_process/1` HOT 2
- Execution Deadline is ignoring the `scheduled_at` offset HOT 1
- Oban Web - support bulk actions on filtered jobs HOT 3
- Oban worker backoff algorithm HOT 2
- Possible regression when handling unique advisory lock HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oban.