From 672670cf9ff315dd6c7068f93419a73a8bf5a8c2 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Fri, 28 Jun 2024 14:52:12 -0400 Subject: [PATCH] Different attempt at logging --- app.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 1cea077..e71397e 100755 --- a/app.py +++ b/app.py @@ -9,6 +9,7 @@ from bottle import ( ) import thesethreewords as these +import sys example_locs = [("sydney", (-33.867480754852295, 151.20700120925903)), @@ -51,14 +52,14 @@ def showMapFromLatLng(lat, lng): # API @get('/api/,') def latLngToHash(lat, lng): - print(lat) - print(lng) + print(lat, file=sys.stdout) + print(lng, file=sys.stdout) try: three = these.three_words(lat,lng) six = these.six_words(lat,lng) return {'three': three, 'six': six} except Exception as error: - print(error) + print(error, file=sys.stderr) return {}