Commit ea4a5daa authored by Mike Hibler's avatar Mike Hibler

Expose the debug flag so we can get errors to stderr instead of syslog.

parent df5d7cdb
...@@ -68,8 +68,8 @@ main(int argc, char **argv) ...@@ -68,8 +68,8 @@ main(int argc, char **argv)
{ {
int rv; int rv;
UploadLogInit();
parse_args(argc, argv); parse_args(argc, argv);
UploadLogInit();
net_init(); net_init();
...@@ -89,8 +89,11 @@ static void ...@@ -89,8 +89,11 @@ static void
parse_args(int argc, char **argv) parse_args(int argc, char **argv)
{ {
int ch; int ch;
while ((ch = getopt(argc, argv, "m:p:i:b:I:T:s:A:")) != -1) { while ((ch = getopt(argc, argv, "m:p:i:b:I:T:s:A:d")) != -1) {
switch (ch) { switch (ch) {
case 'd':
debug++;
break;
case 'm': case 'm':
if (!inet_aton(optarg, &clientip)) { if (!inet_aton(optarg, &clientip)) {
fprintf(stderr, "Invalid client IP '%s'\n", fprintf(stderr, "Invalid client IP '%s'\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment