Skip to content

Commit

Permalink
Move some debugging messages from LOG_INFO to LOG_DEBUG - decreased v…
Browse files Browse the repository at this point in the history
…erbosity of INFO level to more suitable messages.
  • Loading branch information
Thulinma committed Jan 12, 2012
1 parent f57f68d commit ba99c31
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/bblogger.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ static void parse_xorg_output(char * string){
/* Warning lines are warnings. */
if (strncmp(string, "(WW)", 4) == 0){
prio = LOG_WARNING;
/* recognize some of the less useful nouveau/nvidia warnings, degrade them to LOG_INFO level. */
if (strstr(string, "trying again")){prio = LOG_INFO;}/* nouveau: warning about no outputs being found connected */
if (strstr(string, "initial framebuffer")){prio = LOG_INFO;}/* nouveau: warning for set resolution with no screen attached */
if (strstr(string, "looking for one")){prio = LOG_INFO;}/* nouveau: no keyboard/mouse warning */
if (strstr(string, "EDID")){prio = LOG_INFO;}/* nvidia: cannot read EDID warning */
/* recognize some of the less useful warnings, degrade them to LOG_DEBUG level. */
if (strstr(string, "trying again")){prio = LOG_DEBUG;}/* nouveau: warning about no outputs being found connected */
if (strstr(string, "initial framebuffer")){prio = LOG_DEBUG;}/* nouveau: warning for set resolution with no screen attached */
if (strstr(string, "looking for one")){prio = LOG_DEBUG;}/* X: no keyboard/mouse warning */
if (strstr(string, "EDID")){prio = LOG_DEBUG;}/* nvidia: cannot read EDID warning */
/* Recognize nvidia complaining about ConnectedMonitor setting */
if (strstr(string, "valid display devices are")){
valid = strstr(string, "'");//find the '-character
Expand Down
6 changes: 3 additions & 3 deletions src/bbrun.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ int bb_run_fork(char **argv, int detached) {
/* parent process after fork */
int status = 0;

bb_log(LOG_INFO, "Process %s started, PID %i.\n", argv[0], pid);
bb_log(LOG_DEBUG, "Process %s started, PID %i.\n", argv[0], pid);
pidlist_add(pid);

if (waitpid(pid, &status, 0) != -1) {
Expand Down Expand Up @@ -223,7 +223,7 @@ pid_t bb_run_fork_ld_redirect(char **argv, char *ldpath, int redirect) {
} else {
if (ret > 0) {
// Fork went ok, parent process continues
bb_log(LOG_INFO, "Process %s started, PID %i.\n", argv[0], ret);
bb_log(LOG_DEBUG, "Process %s started, PID %i.\n", argv[0], ret);
pidlist_add(ret);
} else {
// Fork failed
Expand All @@ -249,7 +249,7 @@ void bb_run_fork_wait(char** argv, int timeout) {
} else {
if (ret > 0) {
// Fork went ok, parent process continues
bb_log(LOG_INFO, "Process %s started, PID %i.\n", argv[0], ret);
bb_log(LOG_DEBUG, "Process %s started, PID %i.\n", argv[0], ret);
pidlist_add(ret);
//sleep until process finishes or timeout reached
int i = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/bbsocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ int socketConnect(char * address, int nonblock) {
/// Never fails.

void socketClose(int * sock) {
bb_log(LOG_INFO, "Socket closed.\n");
bb_log(LOG_DEBUG, "Socket closed.\n");
// do not attempt to close closed or uninitialized sockets
if (!sock || *sock == -1) {
return;
Expand Down

0 comments on commit ba99c31

Please sign in to comment.