Skip to content

using decorator @logger.patch always return None #12

Description

@chairco

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions