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)
{
int rv;
UploadLogInit();
parse_args(argc, argv);
UploadLogInit();
net_init();
......@@ -89,8 +89,11 @@ static void
parse_args(int argc, char **argv)
{
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) {
case 'd':
debug++;
break;
case 'm':
if (!inet_aton(optarg, &clientip)) {
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