Skip to content

Commit

Permalink
1.3.5 Include debug logs in production
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisse committed Sep 26, 2020
1 parent 1b3ff6e commit aa05eac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kaggle_environments/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from . import errors
from . import utils

__version__ = "1.3.4"
__version__ = "1.3.5"

__all__ = ["Agent", "environments", "errors", "evaluate", "http_request",
"make", "register", "utils", "__version__",
Expand Down
4 changes: 3 additions & 1 deletion kaggle_environments/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,8 @@ def __run_interpreter(self, state):
"stdout": out,
"stderr": err
})
self.debug_print(out)
self.debug_print(err)

def __process_specification(self, spec):
if has(spec, path=["reward"]):
Expand Down Expand Up @@ -641,5 +643,5 @@ def update_props(shared_state, state, schema_props):
return update_props(self.state[0], state, self.__state_schema.properties)

def debug_print(self, message):
if self.debug:
if self.debug or self.configuration.isProduction:
print(message)

0 comments on commit aa05eac

Please sign in to comment.