diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-25 03:01:24 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-25 03:01:24 +0100 |
commit | 12f20d369c6bba0dfe61e433c14d220b9c43febd (patch) | |
tree | a290e80d208fca9107b9957bc9e3b693f01f1997 /openbsc/src/bsc_msc_ip.c | |
parent | 2008d3f54cac8d947406943b324193b2df97f41d (diff) |
bsc_msc_ip: Add an option for the global log level
Diffstat (limited to 'openbsc/src/bsc_msc_ip.c')
-rw-r--r-- | openbsc/src/bsc_msc_ip.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c index 26f70e406..3b5fd0896 100644 --- a/openbsc/src/bsc_msc_ip.c +++ b/openbsc/src/bsc_msc_ip.c @@ -686,6 +686,7 @@ static void print_help() printf(" -c --config-file filename The config file to use.\n"); printf(" -m --msc=IP. The address of the MSC.\n"); printf(" -l --local=IP. The local address of the MGCP.\n"); + printf(" -e --log-level number. Set a global loglevel.\n"); } static void handle_options(int argc, char** argv) @@ -701,6 +702,7 @@ static void handle_options(int argc, char** argv) {"rtp-proxy", 0, 0, 'P'}, {"msc", 1, 0, 'm'}, {"local", 1, 0, 'l'}, + {"log-level", 1, 0, 'e'}, {0, 0, 0, 0} }; @@ -735,6 +737,9 @@ static void handle_options(int argc, char** argv) case 'l': inet_aton(optarg, &local_addr); break; + case 'e': + debug_set_log_level(stderr_target, atoi(optarg)); + break; default: /* ignore */ break; |