Skip to content

Commit eb21617

Browse files
committed
remove saftey-dont-submit code for production
1 parent 8e893be commit eb21617

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tom_swift/swift.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -758,14 +758,6 @@ def submit_observation(self, observation_payload) -> [()]:
758758
"""
759759
self._configure_too(observation_payload)
760760

761-
# TODO: remove this for production
762-
if not self.swift_api.too.debug:
763-
# while in development, exit early if we're not in debug mode. (i.e. don't submit).
764-
logger.warning(f'submit_observation - Skipping ACTUAL submission!!! too.debug: {self.swift_api.too.debug}'
765-
f' Even though, in the form, Debug is {self.swift_api.too.debug}, it is being reset'
766-
f' to True before we call too.submit()')
767-
self.swift_api.too.debug = True
768-
769761
logger.debug('calling too.submit()')
770762
self.swift_api.too.submit()
771763
logger.debug('too.submit() returned')

0 commit comments

Comments
 (0)