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

Suppress error messages from module:ldap module that are not necessary test output #16

Closed
takano32 opened this issue Feb 28, 2020 · 1 comment

Comments

@takano32
Copy link
Contributor

takano32 commented Feb 28, 2020

module:urls messages are not so frustration for me.

But module:ldap them are.

example.

$ python manage.py test
Creating test database for alias 'default'...
[INFO]  asctime:2020-02-26 14:08:37,785 module:urls     message:advanced API endpoints are unavailable  process:37344   thread:4502900160
[INFO]  asctime:2020-02-26 14:08:37,793 module:urls     message:There is no URL dispatcher of custom-view       process:37344   thread:4502900160
System check identified no issues (0 silenced).
...........................................[INFO]       asctime:2020-02-26 14:08:44,462 module:ldap     message:Failed to authenticate user(ldap_user) in LDAP  process:37344   thread:4502900160
..[ERROR]       asctime:2020-02-26 14:08:44,676 module:ldap     message:('unable to open socket', [(LDAPSocketOpenError('socket connection error while opening: [Errno 61] Connection refused',), ('::1', 389, 0, 0)), (LDAPSocketOpenError('socket connection error while opening: [Errno 61] Connection refused',), ('127.0.0.1', 389))])     process:37344   thread:4502900160
[INFO]  asctime:2020-02-26 14:08:44,676 module:ldap     message:Failed to authenticate user(invalid_user) in LDAP       process:37344   thread:4502900160
[ERROR] asctime:2020-02-26 14:08:44,679 module:ldap     message:('unable to open socket', [(LDAPSocketOpenError('socket connection error while opening: [Errno 61] Connection refused',), ('::1', 389, 0, 0)), (LDAPSocketOpenError('socket connection error while opening: [Errno 61] Connection refused',), ('127.0.0.1', 389))])     process:37344   thread:4502900160
[INFO]  asctime:2020-02-26 14:08:44,680 module:ldap     message:Failed to authenticate user(guest) in LDAP      process:37344   thread:4502900160
.......................................................................................................................................................................................s...............................................s..............................................................................................................................................
----------------------------------------------------------------------
Ran 419 tests in 233.525s

OK (skipped=2)
Destroying test database for alias 'default'...

There are many module:ldap messages that outputs seem to be not clean.

ref PR. #15

@takano32
Copy link
Contributor Author

If this succeeds, it looks like this:

$ python manage.py test
Creating test database for alias 'default'...
[INFO]  asctime:2020-02-26 14:08:37,785 module:urls     message:advanced API endpoints are unavailable  process:37344   thread:4502900160
[INFO]  asctime:2020-02-26 14:08:37,793 module:urls     message:There is no URL dispatcher of custom-view       process:37344   thread:4502900160
System check identified no issues (0 silenced).
..................................................................................................................................................................................................................................s...............................................s..............................................................................................................................................
----------------------------------------------------------------------
Ran 419 tests in 233.525s

OK (skipped=2)
Destroying test database for alias 'default'...

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

2 participants