Skip to content

Commit

Permalink
- client: add <suspend_debug> log flag
Browse files Browse the repository at this point in the history
svn path=/trunk/boinc/; revision=25585
  • Loading branch information
davidpanderson committed Apr 20, 2012
1 parent f12e829 commit 0f3491b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions checkin_notes
Original file line number Diff line number Diff line change
Expand Up @@ -3405,3 +3405,9 @@ David 20 Apr 2012
process_input_template.cpp
dir_hier_path.cpp
create_work.cpp

David 20 Apr 2012
- client: add <suspend_debug> log flag

lib/
cc_config.cpp,h
3 changes: 3 additions & 0 deletions lib/cc_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ int LOG_FLAGS::parse(XML_PARSER& xp) {
if (xp.parse_bool("slot_debug", slot_debug)) continue;
if (xp.parse_bool("state_debug", state_debug)) continue;
if (xp.parse_bool("statefile_debug", statefile_debug)) continue;
if (xp.parse_bool("suspend_debug", suspend_debug)) continue;
if (xp.parse_bool("task_debug", task_debug)) continue;
if (xp.parse_bool("time_debug", time_debug)) continue;
if (xp.parse_bool("trickle_debug", trickle_debug)) continue;
Expand Down Expand Up @@ -134,6 +135,7 @@ int LOG_FLAGS::write(MIOFILE& out) {
" <slot_debug>%d</slot_debug>\n"
" <state_debug>%d</state_debug>\n"
" <statefile_debug>%d</statefile_debug>\n"
" <suspend_debug>%d</suspend_debug>\n"
" <task_debug>%d</task_debug>\n"
" <time_debug>%d</time_debug>\n"
" <trickle_debug>%d</trickle_debug>\n"
Expand Down Expand Up @@ -172,6 +174,7 @@ int LOG_FLAGS::write(MIOFILE& out) {
slot_debug ? 1 : 0,
state_debug ? 1 : 0,
statefile_debug ? 1 : 0,
suspend_debug ? 1 : 0,
task_debug ? 1 : 0,
time_debug ? 1 : 0,
trickle_debug ? 1 : 0,
Expand Down
2 changes: 2 additions & 0 deletions lib/cc_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ struct LOG_FLAGS {
// also show actions of garbage collector
bool statefile_debug;
// show when and why state file is written
bool suspend_debug;
// details of processing and network suspend/resume
bool task_debug;
// task start and control details, and when apps checkpoint
bool time_debug;
Expand Down

0 comments on commit 0f3491b

Please sign in to comment.