OSDN Git Service

MacGui: Logging Level - set to "1" in prefs.
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 20 Oct 2008 21:34:16 +0000 (21:34 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 20 Oct 2008 21:34:16 +0000 (21:34 +0000)
- Currently cannot increase in the preferences panel, will add later.

git-svn-id: svn://localhost/HandBrake/trunk@1854 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm
macosx/HBPreferencesController.m

index 4539aee..0a89f73 100644 (file)
@@ -73,9 +73,10 @@ static NSString *        ChooseSourceIdentifier             = @"Choose Source It
 - (void) applicationDidFinishLaunching: (NSNotification *) notification
 {
     /* Init libhb with check for updates libhb style set to "0" so its ignored and lets sparkle take care of it */
-    fHandle = hb_init(HB_DEBUG_ALL, 0);
+    int loggingLevel = [[[NSUserDefaults standardUserDefaults] objectForKey:@"LoggingLevel"] intValue];
+    fHandle = hb_init(loggingLevel, 0);
     /* Init a separate instance of libhb for user scanning and setting up jobs */
-    fQueueEncodeLibhb = hb_init(HB_DEBUG_ALL, 0);
+    fQueueEncodeLibhb = hb_init(loggingLevel, 0);
     
        // Set the Growl Delegate
     [GrowlApplicationBridge setGrowlDelegate: self];
index 7cba07e..88cbfbd 100644 (file)
@@ -48,6 +48,7 @@
         @"NO",              @"DefaultAutoNaming",
         @"NO",              @"DisableDvdAutoDetect",
         @"Alert Window",    @"AlertWhenDone",
+        @"1",               @"LoggingLevel",
         @"4:10:15:9:10:35:9",    @"DecombCustomString",
         nil]];
 }