Skip to content

using decorator @logger.patch always return None #12

@chairco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions