mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-01 08:03:31 +01:00
clean up some confusing logs.
make MonthlyAccountingStart truly obsolete now. svn:r4782
This commit is contained in:
parent
79e3f5600a
commit
11bc97801d
@ -146,7 +146,7 @@ static config_var_t _option_vars[] = {
|
|||||||
VAR("MaxAdvertisedBandwidth",MEMUNIT,MaxAdvertisedBandwidth,"128 TB"),
|
VAR("MaxAdvertisedBandwidth",MEMUNIT,MaxAdvertisedBandwidth,"128 TB"),
|
||||||
VAR("MaxCircuitDirtiness", INTERVAL, MaxCircuitDirtiness, "10 minutes"),
|
VAR("MaxCircuitDirtiness", INTERVAL, MaxCircuitDirtiness, "10 minutes"),
|
||||||
VAR("MaxOnionsPending", UINT, MaxOnionsPending, "100"),
|
VAR("MaxOnionsPending", UINT, MaxOnionsPending, "100"),
|
||||||
VAR("MonthlyAccountingStart",UINT, _MonthlyAccountingStart,"0"),
|
OBSOLETE("MonthlyAccountingStart"),
|
||||||
VAR("MyFamily", STRING, MyFamily, NULL),
|
VAR("MyFamily", STRING, MyFamily, NULL),
|
||||||
VAR("NewCircuitPeriod", INTERVAL, NewCircuitPeriod, "30 seconds"),
|
VAR("NewCircuitPeriod", INTERVAL, NewCircuitPeriod, "30 seconds"),
|
||||||
VAR("Nickname", STRING, Nickname, NULL),
|
VAR("Nickname", STRING, Nickname, NULL),
|
||||||
@ -1743,19 +1743,19 @@ options_validate(or_options_t *options)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (options->DirFetchPeriod > MAX_DIR_PERIOD) {
|
if (options->DirFetchPeriod > MAX_DIR_PERIOD) {
|
||||||
log(LOG_WARN, "DirFetchPeriod is too large; clipping.");
|
log(LOG_WARN, "DirFetchPeriod is too large; clipping to %ds.", MAX_DIR_PERIOD);
|
||||||
options->DirFetchPeriod = MAX_DIR_PERIOD;
|
options->DirFetchPeriod = MAX_DIR_PERIOD;
|
||||||
}
|
}
|
||||||
if (options->DirPostPeriod > MAX_DIR_PERIOD) {
|
if (options->DirPostPeriod > MAX_DIR_PERIOD) {
|
||||||
log(LOG_WARN, "DirPostPeriod is too large; clipping.");
|
log(LOG_WARN, "DirPostPeriod is too large; clipping to %ds.", MAX_DIR_PERIOD);
|
||||||
options->DirPostPeriod = MAX_DIR_PERIOD;
|
options->DirPostPeriod = MAX_DIR_PERIOD;
|
||||||
}
|
}
|
||||||
if (options->StatusFetchPeriod > MAX_DIR_PERIOD) {
|
if (options->StatusFetchPeriod > MAX_DIR_PERIOD) {
|
||||||
log(LOG_WARN, "StatusFetchPeriod is too large; clipping.");
|
log(LOG_WARN, "StatusFetchPeriod is too large; clipping to %ds.", MAX_DIR_PERIOD);
|
||||||
options->StatusFetchPeriod = MAX_DIR_PERIOD;
|
options->StatusFetchPeriod = MAX_DIR_PERIOD;
|
||||||
}
|
}
|
||||||
if (options->RendPostPeriod > MAX_DIR_PERIOD) {
|
if (options->RendPostPeriod > MAX_DIR_PERIOD) {
|
||||||
log(LOG_WARN, "RendPostPeriod is too large; clipping.");
|
log(LOG_WARN, "RendPostPeriod is too large; clipping to %ds.", MAX_DIR_PERIOD);
|
||||||
options->RendPostPeriod = MAX_DIR_PERIOD;
|
options->RendPostPeriod = MAX_DIR_PERIOD;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1782,6 +1782,7 @@ options_validate(or_options_t *options)
|
|||||||
result = -1;
|
result = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (options->_MonthlyAccountingStart) {
|
if (options->_MonthlyAccountingStart) {
|
||||||
if (options->AccountingStart) {
|
if (options->AccountingStart) {
|
||||||
log(LOG_WARN,"Can't specify AccountingStart and MonthlyAccountingStart");
|
log(LOG_WARN,"Can't specify AccountingStart and MonthlyAccountingStart");
|
||||||
@ -1797,6 +1798,7 @@ options_validate(or_options_t *options)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (accounting_parse_options(options, 1)<0) {
|
if (accounting_parse_options(options, 1)<0) {
|
||||||
result = -1;
|
result = -1;
|
||||||
|
@ -1151,8 +1151,6 @@ typedef struct {
|
|||||||
config_line_t *RedirectExit; /**< List of config lines for simple
|
config_line_t *RedirectExit; /**< List of config lines for simple
|
||||||
* addr/port redirection */
|
* addr/port redirection */
|
||||||
smartlist_t *RedirectExitList; /**< List of exit_redirect_t */
|
smartlist_t *RedirectExitList; /**< List of exit_redirect_t */
|
||||||
int _MonthlyAccountingStart; /**< Deprecated: day of month when accounting
|
|
||||||
* interval starts */
|
|
||||||
char *AccountingStart; /**< How long is the accounting interval, and when
|
char *AccountingStart; /**< How long is the accounting interval, and when
|
||||||
* does it start? */
|
* does it start? */
|
||||||
uint64_t AccountingMax; /**< How many bytes do we allow per accounting
|
uint64_t AccountingMax; /**< How many bytes do we allow per accounting
|
||||||
|
Loading…
Reference in New Issue
Block a user