Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
c9106107
Commit
c9106107
authored
Sep 14, 2017
by
David Goulet
Browse files
sched: Improve logging if KIST is disabled
Signed-off-by:
David Goulet
<
dgoulet@torproject.org
>
parent
0d0b677b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/scheduler.c
View file @
c9106107
...
...
@@ -293,10 +293,17 @@ select_scheduler(void)
goto
end
;
case
SCHEDULER_KIST
:
if
(
!
scheduler_can_use_kist
())
{
log_warn
(
LD_SCHED
,
"Scheduler KIST can't be used. Consider removing "
"it from Schedulers or if you have a tor built "
"with KIST support, you should make sure "
"KISTSchedRunInterval is a non zero value"
);
#ifdef HAVE_KIST_SUPPORT
if
(
get_options
()
->
KISTSchedRunInterval
==
-
1
)
{
log_info
(
LD_SCHED
,
"Scheduler type KIST can not be used. It is "
"disabled because KISTSchedRunInterval=-1"
);
}
else
{
log_notice
(
LD_SCHED
,
"Scheduler type KIST has been disabled by "
"the consensus."
);
}
#else
/* HAVE_KIST_SUPPORT */
log_info
(
LD_SCHED
,
"Scheduler type KIST not built in"
);
#endif
/* HAVE_KIST_SUPPORT */
continue
;
}
the_scheduler
=
get_kist_scheduler
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment