Skip to content

Commit 620d43f

Browse files
authored
Log RequestOptions params (#1070)
* Log RequestOptions params
1 parent 5a7ea97 commit 620d43f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tableauserverclient/server/request_options.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
from ..models.property_decorators import property_is_int
2+
import logging
3+
4+
logger = logging.getLogger("tableau.request_options")
25

36

47
class RequestOptionsBase(object):
@@ -8,6 +11,8 @@ def apply_query_params(self, url):
811
params = self.get_query_params()
912
params_list = ["{}={}".format(k, v) for (k, v) in params.items()]
1013

14+
logger.debug("Applying options to request: <%s(%s)>", self.__class__.__name__, ",".join(params_list))
15+
1116
if "?" in url:
1217
url, existing_params = url.split("?")
1318
params_list.append(existing_params)

0 commit comments

Comments
 (0)