Giter Site home page Giter Site logo

Comments (5)

alfredodeza avatar alfredodeza commented on August 26, 2024

that is odd, but it may be because your configuration file has not defined a logging handler for it. Mind pasting it so we can take a look?

from paddles.

Midori-ch avatar Midori-ch commented on August 26, 2024

Hi,
Thank you so much. Here is the content of config.py and alembic.ini.
config.py.txt
alembic.txt

from paddles.

alfredodeza avatar alfredodeza commented on August 26, 2024

is this just a warning or is there a traceback as well?

from paddles.

zmc avatar zmc commented on August 26, 2024

I've seen this as well, but haven't ever really looked into it as it doesn't seem to cause problems. I'm not sure if I'm missing out on any useful log messages from sqlalchemy...

from paddles.

runsisi avatar runsisi commented on August 26, 2024

@Midori-ch you can use the already defined log handler console, e.g.

53         'sqlalchemy': {'level': 'WARN', 'handlers': ['console']},

or define a custom log handler, here i define a file handler named xxx, e.g.

 50     'loggers': {
 51         'root': {'level': 'INFO', 'handlers': ['console']},
 52         'paddles': {'level': 'DEBUG', 'handlers': ['console']},
 53         'sqlalchemy': {'level': 'WARN', 'handlers': ['xxx']},
 54         'py.warnings': {'handlers': ['console']},
 55         '__force_dict__': True
 56     },
 57     'handlers': {
 58         'console': {
 59             'level': 'DEBUG',
 60             'class': 'logging.StreamHandler',
 61             'formatter': 'simple'
 62         },  
 63         'xxx': {
 64             'level': 'DEBUG',
 65             'class': 'logging.FileHandler',
 66             'formatter': 'simple',
 67             'filename': 'pecan.log'                                                                                                                                                     
 68         },
 69     },  

from paddles.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.