Changeset 4152
- Timestamp:
- 22/01/10 12:28:26 (8 months ago)
- Location:
- cherokee/trunk/cherokee
- Files:
-
- 4 modified
-
dwriter.c (modified) (1 diff)
-
error_list.py (modified) (1 diff)
-
handler_post_report.c (modified) (4 diffs)
-
handler_post_report.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cherokee/trunk/cherokee/dwriter.c
r4151 r4152 446 446 447 447 if (equal_buf_str (buf, "ruby")) { 448 props->lang = dwriter_ruby;448 *lang = dwriter_ruby; 449 449 return ret_ok; 450 450 } -
cherokee/trunk/cherokee/error_list.py
r4142 r4152 260 260 261 261 262 # cherokee/handler_post_report.c 263 # 264 e('HANDLER_POST_REPORT_LANG', 265 title = "Unrecognized language '%s'", 266 desc = "Cherokee's POST status reporter supports a number of output languages and formats, including: JSON, Python, PHP and Ruby.") 267 268 262 269 # cherokee/handler_dbslayer.c 263 270 # -
cherokee/trunk/cherokee/handler_post_report.c
r4149 r4152 50 50 cherokee_module_props_t **_props) 51 51 { 52 ret_t ret; 52 53 cherokee_list_t *i; 53 54 cherokee_handler_post_report_props_t *props; … … 60 61 cherokee_module_props_init_base (MODULE_PROPS(n), 61 62 MODULE_PROPS_FREE(props_free)); 62 63 n->lang = dwriter_json; 63 64 *_props = MODULE_PROPS(n); 64 65 } … … 68 69 cherokee_config_node_foreach (i, conf) { 69 70 cherokee_config_node_t *subconf = CONFIG_NODE(i); 70 UNUSED (subconf); 71 72 ret = cherokee_dwriter_lang_to_type (&subconf->val, &props->lang); 73 if (ret != ret_ok) { 74 LOG_CRITICAL (CHEROKEE_ERROR_HANDLER_POST_REPORT_LANG, subconf->val.buf); 75 return ret_error; 76 } 71 77 } 72 78 … … 108 114 109 115 n->writer.pretty = true; 110 n->writer.lang = dwriter_json;116 n->writer.lang = PROP_POST_REPORT(props)->lang; 111 117 112 118 cherokee_dwriter_set_buffer (&n->writer, &n->buffer); -
cherokee/trunk/cherokee/handler_post_report.h
r4147 r4152 38 38 typedef struct { 39 39 cherokee_module_props_t base; 40 cherokee_dwriter_lang_t lang; 40 41 } cherokee_handler_post_report_props_t; 41 42