Skip to content
Snippets Groups Projects
Commit 8cfcf0a1 authored by mh17's avatar mh17
Browse files

debug options added

parent 2813ff76
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* HISTORY: * HISTORY:
* Last edited: Nov 26 08:26 2009 (edgrif) * Last edited: Nov 26 08:26 2009 (edgrif)
* Created: Thu Jan 27 13:17:43 2005 (edgrif) * Created: Thu Jan 27 13:17:43 2005 (edgrif)
* CVS info: $Id: zmapServerProtocolHandler.c,v 1.51 2009-12-14 16:37:59 mh17 Exp $ * CVS info: $Id: zmapServerProtocolHandler.c,v 1.52 2009-12-21 11:26:27 mh17 Exp $
*------------------------------------------------------------------- *-------------------------------------------------------------------
*/ */
...@@ -81,6 +81,9 @@ typedef struct ...@@ -81,6 +81,9 @@ typedef struct
} DrawableStruct, *Drawable ; } DrawableStruct, *Drawable ;
gboolean zmap_server_feature2style_debug_G = FALSE;
gboolean zmap_server_styles_debug_G = FALSE;
static void protocolGlobalInitFunc(ZMapProtocolInitList protocols, ZMapURL url, static void protocolGlobalInitFunc(ZMapProtocolInitList protocols, ZMapURL url,
void **global_init_data) ; void **global_init_data) ;
...@@ -408,12 +411,19 @@ if(*slave_data) zMapLogMessage("req %s/%s %d",server->url->protocol,server->url- ...@@ -408,12 +411,19 @@ if(*slave_data) zMapLogMessage("req %s/%s %d",server->url->protocol,server->url-
&(feature_sets->source_2_featureset_out)) ; &(feature_sets->source_2_featureset_out)) ;
if (request->response != ZMAP_SERVERRESPONSE_OK && request->response != ZMAP_SERVERRESPONSE_UNSUPPORTED) if (request->response == ZMAP_SERVERRESPONSE_OK)
{
if(zmap_server_feature2style_debug_G) // OK status: only do this for active databases not files
{
/* Print out the featureset -> styles lists. */
zMap_g_hashlist_print(feature_sets->featureset_2_stylelist_out);
}
}
else if(request->response != ZMAP_SERVERRESPONSE_UNSUPPORTED)
{ {
*err_msg_out = g_strdup_printf(zMapServerLastErrorMsg(server)) ; *err_msg_out = g_strdup_printf(zMapServerLastErrorMsg(server)) ;
thread_rc = ZMAPTHREAD_RETURNCODE_REQFAIL ; thread_rc = ZMAPTHREAD_RETURNCODE_REQFAIL ;
} }
break ; break ;
} }
case ZMAP_SERVERREQ_STYLES: case ZMAP_SERVERREQ_STYLES:
...@@ -786,7 +796,7 @@ ZMapThreadReturnCode getStyles(ZMapServer server, ZMapServerReqStyles styles, ch ...@@ -786,7 +796,7 @@ ZMapThreadReturnCode getStyles(ZMapServer server, ZMapServerReqStyles styles, ch
{ {
ZMapIOOut dest ; ZMapIOOut dest ;
char *string ; char *string ;
gboolean styles_debug = FALSE; gboolean styles_debug = zmap_server_styles_debug_G;
/* PRINTOUT is changed to this now so need to write a short debug routine for all /* PRINTOUT is changed to this now so need to write a short debug routine for all
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment