projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename VERBOSE log level to TRACE
[babeltrace.git]
/
src
/
cli
/
babeltrace2.c
diff --git
a/src/cli/babeltrace2.c
b/src/cli/babeltrace2.c
index c8c8e821d55502a61b28089a09029334b2b0a91d..396673d0d63ed996c7b9b601ad8d3c96c9511fa1 100644
(file)
--- a/
src/cli/babeltrace2.c
+++ b/
src/cli/babeltrace2.c
@@
-2374,7
+2374,7
@@
int cmd_run_ctx_create_components_from_config_components(
goto error;
}
goto error;
}
- BT_ASSERT(cfg_comp->log_level >= BT_LOG_
VERBOS
E);
+ BT_ASSERT(cfg_comp->log_level >= BT_LOG_
TRAC
E);
switch (cfg_comp->type) {
case BT_COMPONENT_CLASS_TYPE_SOURCE:
switch (cfg_comp->type) {
case BT_COMPONENT_CLASS_TYPE_SOURCE:
@@
-2646,7
+2646,7
@@
int cmd_run(struct bt_config *cfg)
printf("%s", bt_common_color_reset());
fflush(stdout);
fprintf(stderr, "%s", bt_common_color_reset());
printf("%s", bt_common_color_reset());
fflush(stdout);
fprintf(stderr, "%s", bt_common_color_reset());
- BT_LOG
V
("bt_graph_run() returned: status=%s",
+ BT_LOG
T
("bt_graph_run() returned: status=%s",
bt_graph_status_str(graph_status));
switch (graph_status) {
bt_graph_status_str(graph_status));
switch (graph_status) {
@@
-2662,7
+2662,7
@@
int cmd_run(struct bt_config *cfg)
}
if (cfg->cmd_data.run.retry_duration_us > 0) {
}
if (cfg->cmd_data.run.retry_duration_us > 0) {
- BT_LOG
V
("Got BT_GRAPH_STATUS_AGAIN: sleeping: "
+ BT_LOG
T
("Got BT_GRAPH_STATUS_AGAIN: sleeping: "
"time-us=%" PRIu64,
cfg->cmd_data.run.retry_duration_us);
"time-us=%" PRIu64,
cfg->cmd_data.run.retry_duration_us);
@@
-2739,7
+2739,7
@@
void set_auto_log_levels(struct bt_config *cfg)
*/
if (getenv("BABELTRACE_DEBUG") &&
strcmp(getenv("BABELTRACE_DEBUG"), "1") == 0) {
*/
if (getenv("BABELTRACE_DEBUG") &&
strcmp(getenv("BABELTRACE_DEBUG"), "1") == 0) {
- cfg->log_level = BT_LOG_
VERBOS
E;
+ cfg->log_level = BT_LOG_
TRAC
E;
} else if (getenv("BABELTRACE_VERBOSE") &&
strcmp(getenv("BABELTRACE_VERBOSE"), "1") == 0) {
cfg->log_level = BT_LOG_INFO;
} else if (getenv("BABELTRACE_VERBOSE") &&
strcmp(getenv("BABELTRACE_VERBOSE"), "1") == 0) {
cfg->log_level = BT_LOG_INFO;
@@
-2751,15
+2751,15
@@
void set_auto_log_levels(struct bt_config *cfg)
* --verbose. So:
*
* --verbose: INFO log level
* --verbose. So:
*
* --verbose: INFO log level
- * --debug:
VERBOS
E log level (includes DEBUG, which is
- * is less verbose than
VERBOS
E in the internal
+ * --debug:
TRAC
E log level (includes DEBUG, which is
+ * is less verbose than
TRAC
E in the internal
* logging framework)
*/
if (!getenv("LIBBABELTRACE2_INIT_LOG_LEVEL")) {
if (cfg->verbose) {
bt_logging_set_global_level(BT_LOG_INFO);
} else if (cfg->debug) {
* logging framework)
*/
if (!getenv("LIBBABELTRACE2_INIT_LOG_LEVEL")) {
if (cfg->verbose) {
bt_logging_set_global_level(BT_LOG_INFO);
} else if (cfg->debug) {
- bt_logging_set_global_level(BT_LOG_
VERBOS
E);
+ bt_logging_set_global_level(BT_LOG_
TRAC
E);
} else {
/*
* Set library's default log level if not
} else {
/*
* Set library's default log level if not
@@
-2773,7
+2773,7
@@
void set_auto_log_levels(struct bt_config *cfg)
if (cfg->verbose) {
bt_cli_log_level = BT_LOG_INFO;
} else if (cfg->debug) {
if (cfg->verbose) {
bt_cli_log_level = BT_LOG_INFO;
} else if (cfg->debug) {
- bt_cli_log_level = BT_LOG_
VERBOS
E;
+ bt_cli_log_level = BT_LOG_
TRAC
E;
} else {
/*
* Set CLI's default log level if not explicitly
} else {
/*
* Set CLI's default log level if not explicitly
@@
-2788,9
+2788,9
@@
void set_auto_log_levels(struct bt_config *cfg)
while (*env_var_name) {
if (!getenv(*env_var_name)) {
if (cfg->verbose) {
while (*env_var_name) {
if (!getenv(*env_var_name)) {
if (cfg->verbose) {
- g_setenv(*env_var_name, "I", 1);
+ g_setenv(*env_var_name, "I
NFO
", 1);
} else if (cfg->debug) {
} else if (cfg->debug) {
- g_setenv(*env_var_name, "
V
", 1);
+ g_setenv(*env_var_name, "
TRACE
", 1);
} else {
char val[2] = { 0 };
} else {
char val[2] = { 0 };
This page took
0.02606 seconds
and
4
git commands to generate.