Comments (2)
@angeloc Hi angelo, I inspected this a bit, and actually with pydal behind weppy the debug mode is working. I suppose is a logger problem. Are you using pydal behind web2py or directly with console?
@mdipierro I think we can add a logging.StreamHandler(sys.stdout)
to pyDAL as default and patch web2py to inject its own loggers. So if pydal is used directly via console will log debug informations. What do you think?
from pydal.
Poking at the code I found a way some time ago.
Enable the logging is simply a matter of:
db._debug =True
When you want to disable:
db._debug = False.
It's really useful for me, the only drawback I found is that sometimes
web2py crashes cause this logging is not threadsafe.
Sincerely, Angelo.
from pydal.
Related Issues (20)
- Fix unable to parse csv file in web2py break CSV parsing when dynamic upload is used
- MSSQL adapter, tableX_view.insert (..) + trigger INSTEAD OF INSERT, .lastrowid (), "SELECT SCOPE_IDENTITY ()", return long (../ None / ..)
- NotNullViolation on PostgreSQL migration of populated table with a notnull field
- The user name or password contains @, unable to connect to MySQL HOT 4
- Deprecation imports google.appengine.api.rdbms in _gae and google adapter HOT 1
- Upgrade to python3 datastore adapter. Help
- problem with .contains() when passing list as argument HOT 1
- pool_size and leaking connections on PostgreSQL
- erro calling db.uuid method HOT 1
- count field in restapi HOT 1
- non-database upload field fails to build filename
- web2py_filesystem Updates/Corrections
- REGEXP_LIKE missing parameter "match_parameter" in oracle
- Incorrect sqlite placeholder for InDBMigrator
- Database is locked, attempts not working
- Error in the class FireBird
- import_from_csv_file fails if export_to_csv_file with ref id column with gaps
- PyDAL for Azure MySQL
- PyDAL for Redis
- pyDAL 20240427 breaks web2py (master) HOT 1
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 pydal.