Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions synda/sdt/sdjson.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def parse_parameters(buffer):
try:
xmldoc = json.loads(buffer)
except Exception as e:
sdlog.debug("SYNDJSON-010","exception %s"%e)
raise

params={}
Expand Down
2 changes: 1 addition & 1 deletion synda/sdt/sdlogon.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def renew_certificate(openid, password, force_renew_certificate=False, force_ren
except Exception as e:
sdlog.error(
"SYDLOGON-012",
"Error occured while retrieving certificate from myproxy server (%s)" % str(e),
"Error %s while retrieving certificate from myproxy server %s" % (str(e),hostname)
)

raise
Expand Down
11 changes: 11 additions & 0 deletions synda/sdt/sdparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from synda.sdt import sdprint
from synda.sdt import sdi18n
from synda.sdt import sdearlystreamutils
from synda.sdt import sdlog

from synda.source.config.file.selection.models import Config as SelectionConfig
from synda.source.config.file.selection.constants import PENDING_PARAMETER
Expand Down Expand Up @@ -130,6 +131,16 @@ def build(buffer, load_default=None):
# set default_selection as parent of project_default_selection
project_default_selection.parent = default_selection

if selection.filename is not None:
sdlog.info('SDPARSE-0001','selection.filename=%s'%selection.filename)
sdlog.info('SDPARSE-0002','searchapi_host facet=%s'%selection.facets.get('searchapi_host'))
if selection.facets.get('searchapi_host') is not None and\
len(selection.facets['searchapi_host'])>0 and\
selection.facets['searchapi_host'][0] is not None:
sdlog.info('SDPARSE-0003','selection %s has searchapi_host=%s'%
(selection.filename,selection.facets['searchapi_host']))
Selection.searchapi_host = selection.facets['searchapi_host'][0]

return selection


Expand Down
5 changes: 3 additions & 2 deletions synda/sdt/sdremotequtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from synda.sdt import sdurlutils
from synda.source.config.file.user.preferences.models import Config as Preferences
from synda.source.config.file.internal.models import Config as Internal
from synda.sdt import sdlog


def serialize_parameters(facets):
Expand Down Expand Up @@ -67,10 +68,10 @@ def serialize_parameter__ovpp(name, values):
# (The '*' at the end of the instance_id value signals the need for wildcards.)
# That's because when the SOLR index is built, sometimes the name is changed (by suffixing
# "_0" or "_1", etc.) to preserve uniqueness. And only string search supports wildcards.
# sdlog.info("JFPRMTQUTS01","name=%s, values=%s"%(name,values))
# sdlog.info("SDRMTQUTS_01","name=%s, values=%s"%(name,values))
name = "query"
values = ["id:" + v + "*" for v in values]
# sdlog.info("JFPRMTQUTS02","name=%s, values=%s"%(name,values))
# sdlog.info("SDRMTQUTS_02","name=%s, values=%s"%(name,values))

for v in values:
l.append(name + "=" + v)
Expand Down