splone / splonebox-core

splonebox - open source network assessment tool with focus on modularity
http://splonebox.io
GNU Affero General Public License v3.0
24 stars 7 forks source link

Verbosity goes down on '-vv' option #31

Closed mkind closed 8 years ago

mkind commented 8 years ago

As soon as sb is started with -vv option there is no more new client connection: host = 127.0.0.1, port = 6060 output if a client connects.

stze commented 8 years ago

the LOG_VERBOSE macro isn't correct

#define LOG_VERBOSE(level, ...)                       \
  do {                                                \
    if (level >= verbose_level) {                     \
      LOG(__VA_ARGS__);                               \
    }                                                 \
  } while (0)

correct would be (i think):

#define LOG_VERBOSE(level, ...)                       \
  do {                                                \
    if (verbose_level >= level) {                     \
      LOG(__VA_ARGS__);                               \
    }                                                 \
  } while (0)
mkind commented 8 years ago

Yes. Is already fixed. Will be upstream someday.