X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fpdf2swf.cc;fp=pdf2swf%2Fpdf2swf.cc;h=a47b91d94d1856a59d3ef7fc02df3345a6356f2e;hb=d6fa2d6b7a322aed5ffb0cc029cb9432ea64e8db;hp=436089283924e1f95b41cb05203d41d8351797ea;hpb=8f64353e90d5dde2c9b50549e5548d6b14b51bfd;p=swftools.git diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index 4360892..a47b91d 100644 --- a/pdf2swf/pdf2swf.cc +++ b/pdf2swf/pdf2swf.cc @@ -87,11 +87,13 @@ int args_callback_option(char*name,char*val) { else if (!strcmp(name, "v")) { loglevel ++; + setConsoleLogging(loglevel); return 0; } else if (!strcmp(name, "q")) { loglevel --; + setConsoleLogging(loglevel); system_quiet = 1; return 0; } @@ -367,6 +369,8 @@ int main(int argn, char *argv[]) int numfonts = 0; int t; char t1searchpath[1024]; + + initLog(0,-1,0,0,-1,loglevel); #if defined(WIN32) && defined(HAVE_STAT) && defined(HAVE_SYS_STAT_H) FILE*test = fopen(FONTDIR "\\d050000l.afm", "rb"); @@ -386,7 +390,6 @@ int main(int argn, char *argv[]) #endif #endif processargs(argn, argv); - initLog(0,-1,0,0,-1,loglevel); if(!filename) {