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

Improvements #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Improvements #18

wants to merge 1 commit into from

Conversation

eliadh
Copy link

@eliadh eliadh commented Sep 13, 2022

  1. Fix standard formatter
  2. misc refactoring
  3. remove unused datetime import

def standard_formatter(status_code, environ, content_length):
return "{0} {1}".format(dt.now().isoformat(), status_code)
def standard_formatter(status_code, environ, content_length, **kwargs):
val = dict()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why use a dict here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually you are right these could be regular variables as well. guess just copy-pasted from the Apache formatter..
anyway, will replace and re-submit the PR. thanks!

@eliadh
Copy link
Author

eliadh commented Sep 14, 2022

Hi.
Replaced the dict in standard_formatter with regular variables.

1) Fix standard formatter
2) misc refactoring
@eliadh
Copy link
Author

eliadh commented Sep 14, 2022

also removed unused datetime import

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

Successfully merging this pull request may close these issues.

None yet

2 participants