summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordynaflash <[email protected]>2008-10-20 21:34:16 +0000
committerdynaflash <[email protected]>2008-10-20 21:34:16 +0000
commitdf9dc4784b8b1484d7785e48422430dd51a04105 (patch)
treefaf06ca4a104e7214a04ba99805555f26e23215e
parent51643b6e89941fb422afe23406e773f041e22582 (diff)
MacGui: Logging Level - set to "1" in prefs.
- Currently cannot increase in the preferences panel, will add later. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1854 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/Controller.mm5
-rw-r--r--macosx/HBPreferencesController.m1
2 files changed, 4 insertions, 2 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 4539aeed3..0a89f7315 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -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];
diff --git a/macosx/HBPreferencesController.m b/macosx/HBPreferencesController.m
index 7cba07e47..88cbfbd18 100644
--- a/macosx/HBPreferencesController.m
+++ b/macosx/HBPreferencesController.m
@@ -48,6 +48,7 @@
@"NO", @"DefaultAutoNaming",
@"NO", @"DisableDvdAutoDetect",
@"Alert Window", @"AlertWhenDone",
+ @"1", @"LoggingLevel",
@"4:10:15:9:10:35:9", @"DecombCustomString",
nil]];
}