Adjust logging levels
- Lingua principale
- JavaScript
- Stelle
- 2k
- Fork
- 238
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi there,
Is there a way to adjust the logging levels of what is outputted from the database.
On my local machine and on heroku the logs have a lot of this:
`
2014-05-04T21:43:01.113622+00:00 app[web.1]: SELECT * FROM "People" WHERE "id" = 123 LIMIT 1 [3 ms]
`
Which is fine for some things, but it would be really nice to be able to reduce the log level s so I can find another bug from the logs.
Is there a way to do this?
Thanks for your help. I really like this platform.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Look at the database adapter files in lib/adapters/ to see how SQL queries are logged. The issue asks for adjustable log levels, so find where console.log or a logger is called. Check if there's a configuration option for logging and see how other ORMs handle log levels. A test in test/adapters/ might show the current behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, mongodb, mysql, nodejs, postgresql, redis, sqlite
- Ambito
- backend, databases, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100