Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions resource/browse_af_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@


def _run_and_log_login_call(method_name, api_call):
logger.info("Start call method {}".format(method_name))
started_at = time.time()
try:
response = api_call()
Expand All @@ -22,7 +23,7 @@ def _run_and_log_login_call(method_name, api_call):
else:
preview_titles.append(str(choice))
logger.info(
"[LOGIN] {} ok | {}ms | choices_count={} | preview_titles={}".format(
"End call method {} ok | {}ms | choices_count={} | preview_titles={}".format(
method_name,
int((time.time() - started_at) * 1000),
choice_count,
Expand All @@ -32,7 +33,7 @@ def _run_and_log_login_call(method_name, api_call):
return response
except Exception as error:
logger.error(
"[LOGIN] {} failed | {}ms | error={}".format(
"End call method {} failed | {}ms | error={}".format(
method_name,
int((time.time() - started_at) * 1000),
error
Expand Down Expand Up @@ -174,6 +175,8 @@ def do(payload, config, plugin_config, inputs):
is_template_tab and len(selected_template_names) > 0
)

logger.info("Start call do_search element_name={}, attribute_name={}, db={}:".format(element_name, attribute_name, database_name))

if not use_clicked_element_nodes_scope and not use_selected_template_names_scope:
clicked_nodes = []
# root_tree = payload.get("root_tree")
Expand Down