Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step 15, Message of "No handlers could be found for logger "sqlalchemy.engine.base.Engine" #61

Open
Midori-ch opened this issue Nov 17, 2015 · 5 comments

Comments

@Midori-ch
Copy link

Hi,
Follow the Readme.rst to set paddles server.
After step 15 when I execute command "$ pecan serve config.py" , server will display a message "No handlers could be found for logger "sqlalchemy.engine.base.Engine".
Is this because I set something wrong?

@alfredodeza
Copy link
Contributor

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?

@Midori-ch
Copy link
Author

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

@alfredodeza
Copy link
Contributor

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

@zmc
Copy link
Member

zmc commented Nov 18, 2015

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...

@runsisi
Copy link

runsisi commented Jan 6, 2016

@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     },  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants