X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=secnet.c;h=69467de0172672dd4cb1070b7461b844ff07f290;hb=7e311a0bf071a2fb1fc6857a9e9828b8c8f7da54;hp=8fb8affe43f80d6cebab337e504524b7f3907756;hpb=c215a4bc817daf7b5631236c3c7b6a509479b034;p=secnet.git diff --git a/secnet.c b/secnet.c index 8fb8aff..69467de 100644 --- a/secnet.c +++ b/secnet.c @@ -4,7 +4,7 @@ * * secnet is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version d of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * secnet is distributed in the hope that it will be useful, but @@ -127,6 +127,9 @@ static void parse_options(int argc, char **argv) exit(0); break; + case 'd': + message_level|=M_DEBUG_CONFIG|M_DEBUG_PHASE|M_DEBUG; + /* fall through */ case 'v': message_level|=M_INFO|M_NOTICE|M_WARNING|M_ERR|M_SECURITY| M_FATAL; @@ -136,10 +139,6 @@ static void parse_options(int argc, char **argv) message_level&=(~M_WARNING); break; - case 'd': - message_level|=M_DEBUG_CONFIG|M_DEBUG_PHASE|M_DEBUG; - break; - case 'f': message_level=M_FATAL; break; @@ -494,6 +493,7 @@ int main(int argc, char **argv) { dict_t *config; + log_early_init(); phase_hooks_init(); enter_phase(PHASE_GETOPTS);