X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fmain.c;h=58cb028684e9c53e5cd28786f7065c14cc804d0c;hb=f534061fc8230481a3ca40abc1d1e9b79d3c4976;hp=8af2dc6aabcd48f4a010064964a1c10e5a524392;hpb=c75862be119ac38a67f841fcc7da339be423973a;p=ppastats.git diff --git a/src/main.c b/src/main.c index 8af2dc6..58cb028 100644 --- a/src/main.c +++ b/src/main.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2012 jeanfi@gmail.com + * Copyright (C) 2011-2014 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -28,9 +28,9 @@ #include "cache.h" #include "html.h" #include "http.h" -#include "log.h" #include "lp_ws.h" #include "config.h" +#include #include "ppastats.h" static const char *program_name; @@ -107,7 +107,7 @@ static void print_version() "\n" "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n"), - "2011-2012"); + "2011-2014"); } static void print_help() @@ -203,6 +203,8 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } + log_open("ppastats.log"); + owner = argv[optind]; ppa = argv[optind+1];