logging: always add ids_print() to prefix even when using net backend
When using net log backend, adding severity and function name to log message. The log module name is a useful information when looking at log entries. This way remote log entries will contain the log module name. Signed-off-by: David D <a8961713@gmail.com>
This commit is contained in:
parent
0d2f5a788a
commit
cf582284f7
1 changed files with 3 additions and 3 deletions
|
@ -502,13 +502,13 @@ static uint32_t prefix_print(const struct log_output *log_output,
|
|||
log_output->control_block->hostname ?
|
||||
log_output->control_block->hostname :
|
||||
"zephyr");
|
||||
|
||||
} else {
|
||||
color_prefix(log_output, colors_on, level);
|
||||
length += ids_print(log_output, level_on, func_on,
|
||||
domain_id, source_id, level);
|
||||
}
|
||||
|
||||
length += ids_print(log_output, level_on, func_on,
|
||||
domain_id, source_id, level);
|
||||
|
||||
return length;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue