Changeset 974:2091bf698fb1 in freeDiameter for extensions/app_acct/acct_conf.y
- Timestamp:
- Mar 15, 2013, 2:14:35 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_acct/acct_conf.y
r808 r974 83 83 84 84 if ( ! acct_config->conninfo) { 85 fd_log_debug("[app_acct] ERROR: 'ConnInfo' is missing in file '%s'. \n"85 fd_log_debug("[app_acct] ERROR: 'ConnInfo' is missing in file '%s'." 86 86 " You can specify 'ConnInfo=\"\";' to use default parameters.\n", conffile); 87 87 return EINVAL; 88 88 } 89 89 if ( ! acct_config->tablename) { 90 fd_log_debug("[app_acct] ERROR: 'Table' value is missing in file '%s'. \n", conffile);90 fd_log_debug("[app_acct] ERROR: 'Table' value is missing in file '%s'.", conffile); 91 91 return EINVAL; 92 92 } … … 97 97 struct fd_list * li; 98 98 99 fd_log_debug("[app_acct] Configuration dump: \n");100 fd_log_debug(" Database: \n");101 fd_log_debug(" ConnInfo ...... : '%s' \n", acct_config->conninfo ?: "<null>");102 fd_log_debug(" Table name .... : '%s' \n", acct_config->tablename ?: "<null>");103 fd_log_debug(" Timestamp field : '%s' \n", acct_config->tsfield ?: "<null>");104 fd_log_debug(" Server name fld : '%s' \n", acct_config->srvnfield ?: "<null>");105 fd_log_debug(" AVPs that will be saved to the database: \n");99 fd_log_debug("[app_acct] Configuration dump:"); 100 fd_log_debug(" Database:"); 101 fd_log_debug(" ConnInfo ...... : '%s'", acct_config->conninfo ?: "<null>"); 102 fd_log_debug(" Table name .... : '%s'", acct_config->tablename ?: "<null>"); 103 fd_log_debug(" Timestamp field : '%s'", acct_config->tsfield ?: "<null>"); 104 fd_log_debug(" Server name fld : '%s'", acct_config->srvnfield ?: "<null>"); 105 fd_log_debug(" AVPs that will be saved to the database:"); 106 106 for (li = acct_config->avps.next; li != &acct_config->avps; li = li->next) { 107 107 struct acct_conf_avp * a = (struct acct_conf_avp *)li; … … 112 112 fd_log_debug("field '%s' ", a->field?:a->avpname); 113 113 } 114 fd_log_debug("as ::%s \n", diam2db_types_mapping[a->avptype]);115 } 116 fd_log_debug("[app_acct] Complete. \n");114 fd_log_debug("as ::%s", diam2db_types_mapping[a->avptype]); 115 } 116 fd_log_debug("[app_acct] Complete."); 117 117 return 0; 118 118 } … … 158 158 if (acct_confin == NULL) { 159 159 ret = errno; 160 fd_log_debug("Unable to open extension configuration file %s for reading: %s \n", conffile, strerror(ret));160 fd_log_debug("Unable to open extension configuration file %s for reading: %s", conffile, strerror(ret)); 161 161 return ret; 162 162 } … … 180 180 181 181 if (ploc->first_line != ploc->last_line) 182 fd_log_debug("%s:%d.%d-%d.%d : %s \n", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);182 fd_log_debug("%s:%d.%d-%d.%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s); 183 183 else if (ploc->first_column != ploc->last_column) 184 fd_log_debug("%s:%d.%d-%d : %s \n", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s);184 fd_log_debug("%s:%d.%d-%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s); 185 185 else 186 fd_log_debug("%s:%d.%d : %s \n", conffile, ploc->first_line, ploc->first_column, s);186 fd_log_debug("%s:%d.%d : %s", conffile, ploc->first_line, ploc->first_column, s); 187 187 } 188 188
Note: See TracChangeset
for help on using the changeset viewer.