Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
batsim
batsim
Commits
0ee41e1e
Commit
0ee41e1e
authored
Sep 20, 2016
by
Millian Poquet
Browse files
Improved logging configuration
parent
66c7ba11
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/batsim.cpp
View file @
0ee41e1e
...
...
@@ -261,6 +261,9 @@ void configure_batsim_logging_output(const MainArguments & main_args)
// Batsim is always set to info, to allow to trace Batsim's input easily
xbt_log_control_set
(
"batsim.thresh:info"
);
// Simgrid-related log control
xbt_log_control_set
(
"surf_energy.thresh:critical"
);
}
/**
...
...
src/ipp.cpp
View file @
0ee41e1e
...
...
@@ -26,9 +26,9 @@ void generic_send_message(const std::string & destination_mailbox, IPMessageType
msg_task_t
task_to_send
=
MSG_task_create
(
NULL
,
0
,
1e-6
,
message
);
XBT_
INFO
(
"message from '%s' to '%s' of type '%s' with data %p"
,
MSG_process_get_name
(
MSG_process_self
()),
destination_mailbox
.
c_str
(),
ipMessageTypeToString
(
type
).
c_str
(),
data
);
XBT_
DEBUG
(
"message from '%s' to '%s' of type '%s' with data %p"
,
MSG_process_get_name
(
MSG_process_self
()),
destination_mailbox
.
c_str
(),
ipMessageTypeToString
(
type
).
c_str
(),
data
);
if
(
detached
)
{
...
...
@@ -39,9 +39,9 @@ void generic_send_message(const std::string & destination_mailbox, IPMessageType
MSG_task_send
(
task_to_send
,
destination_mailbox
.
c_str
());
}
XBT_
INFO
(
"message from '%s' to '%s' of type '%s' with data %p done"
,
MSG_process_get_name
(
MSG_process_self
()),
destination_mailbox
.
c_str
(),
ipMessageTypeToString
(
type
).
c_str
(),
data
);
XBT_
DEBUG
(
"message from '%s' to '%s' of type '%s' with data %p done"
,
MSG_process_get_name
(
MSG_process_self
()),
destination_mailbox
.
c_str
(),
ipMessageTypeToString
(
type
).
c_str
(),
data
);
}
void
send_message
(
const
std
::
string
&
destination_mailbox
,
IPMessageType
type
,
void
*
data
)
...
...
src/server.cpp
View file @
0ee41e1e
...
...
@@ -112,7 +112,7 @@ int uds_server_process(int argc, char *argv[])
submitters
.
erase
(
message
->
submitter_name
);
nb_submitters_finished
++
;
XBT_INFO
(
"A submitted said goodbye. Number of finished submitters: %d"
,
nb_submitters_finished
);
XBT_INFO
(
"A submitted said goodbye. Number of finished submitters: %d"
,
nb_submitters_finished
);
if
(
!
all_jobs_submitted_and_completed
&&
nb_completed_jobs
==
nb_submitted_jobs
&&
...
...
@@ -122,7 +122,7 @@ int uds_server_process(int argc, char *argv[])
XBT_INFO
(
"It seems that all jobs have been submitted and completed!"
);
send_buffer
+=
"|"
+
std
::
to_string
(
MSG_get_clock
())
+
":Z"
;
XBT_DEBUG
(
"Message to send to scheduler: %s"
,
send_buffer
.
c_str
());
XBT_DEBUG
(
"Message to send to scheduler: %s"
,
send_buffer
.
c_str
());
}
}
break
;
// end of case SUBMITTER_BYE
...
...
Write
Preview
Markdown
is supported
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