Skip to content

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.

2 participants