Changeset 9557
- Timestamp:
- 04/26/06 11:17:34 (3 years ago)
- Files:
-
- branches/branch-1-7/src/apis/php4/midgard.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/branch-1-7/src/apis/php4/midgard.c
r9556 r9557 120 120 MGD_FUNCTION(ret_type, config_init, (type_param)); 121 121 MGD_FUNCTION(ret_type, get_new_object_by_guid, (type_param)); 122 MGD_FUNCTION(ret_type, check_quota, (type_param)); 122 123 123 124 /* Undocumented */ … … 2705 2706 void mgd_debug_log_calls() 2706 2707 { 2707 midgard_request_config *rcfg = mgd_rcfg();2708 2708 midgard * mgd = mgd_handle(); 2709 2709 char * called; … … 2713 2713 called = get_active_function_name(TSRMLS_C); 2714 2714 2715 if (rcfg) { 2716 if (rcfg->phpdbg == 1) { 2717 g_log("midgard-php", G_LOG_LEVEL_WARNING, " Request at SG: %d", mgd_sitegroup(mgd)); 2718 g_log("midgard-php", G_LOG_LEVEL_WARNING, " MidgardTrace: %s(...)", called ); 2719 } 2720 } 2715 g_log("midgard-lib", G_LOG_LEVEL_INFO, " Midgard-php: %s(...)", called ); 2716 2717 2721 2718 } 2722 2719 … … 2724 2721 MGD_FUNCTION(ret_type, debug_start, (type param)) 2725 2722 { 2726 //midgard_request_config *rcfg = mgd_rcfg();2727 2723 guint logspec; 2728 2724 const char * loglevel = "Debug+"; … … 2730 2726 if (ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } 2731 2727 2732 //rcfg->phpdbg = 1;2733 2734 2728 logspec = mgd_parse_log_levels(loglevel); 2735 2729 loglevelid = g_log_set_handler("midgard-lib", logspec , mgd_log_debug_default, NULL); … … 2739 2733 MGD_FUNCTION(ret_type, debug_stop, (type param)) 2740 2734 { 2741 2742 //midgard_request_config *rcfg = mgd_rcfg(); 2743 guint logspec; 2744 const char * loglevel = "Warn+"; 2745 2746 2747 if (ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } 2748 2749 //rcfg->phpdbg = 0; 2750 2751 g_log_remove_handler("midgard-lib",loglevelid); 2752 logspec = mgd_parse_log_levels(loglevel); 2753 g_log_set_handler("midgard-lib", logspec , mgd_log_debug_default, NULL); 2754 _log_file = stderr; 2755 2735 guint logspec; 2736 const char * loglevel = "Warn+"; 2737 2738 if (ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } 2739 2740 g_log_remove_handler("midgard-lib",loglevelid); 2741 logspec = mgd_parse_log_levels(loglevel); 2742 g_log_set_handler("midgard-lib", logspec , mgd_log_debug_default, NULL); 2743 _log_file = stderr; 2756 2744 } 2757 2745
