Skip to content

Setup proper logging for Shishito #29

@sankaritan

Description

@sankaritan

Some print statements are useful, some can be spamming console output with unnecessary information (that is why gid() print statements were commented out.

I suggest using python logging functionality such as:

import logging

logging.basicConfig(
    format='%(levelname) 10s %(asctime)s %(message)s',
    level=logging.ERROR
)
log = logging.getLogger('error_log')

log.error('something is wrong man.')
log.warning('something is funny man')

Code snippet above will print only "error" messages

Metadata

Metadata

Assignees

No one assigned

    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