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

using decorator @logger.patch always return None #12

Open
chairco opened this issue Jun 14, 2017 · 1 comment
Open

using decorator @logger.patch always return None #12

chairco opened this issue Jun 14, 2017 · 1 comment

Comments

@chairco
Copy link
Contributor

chairco commented Jun 14, 2017

example:
It's should be returned pass when print show() but it actually returns None.

@logger.patch
def show():
    print("message in show")
    return 'pass'
    
print(show())

output:
2017-06-15 03:14:20,077 - test - DEBUG - message in show
None

@chairco
Copy link
Contributor Author

chairco commented Jun 14, 2017

fix it at 58a401d

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

1 participant