Debug output in system log

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Debug output in system log Tue Nov 04, 2014 11:17 am • by Smudge
Mr. Noodle,
In 3.3.2, some DEBUG log entries are being sent to the main system.log file instead of into the hazel.log file.
Besides cluttering up the system log, it is also logging as coming from the System Preferences application instead of from Hazel, which can be confusing.

Anytime I make a change, the first 5 entries are logged.
The last entry is logged multiple times, between 18 and 200 times, which is very annoying.

Code: Select all
11/4/14 7:31:26.939 AM System Preferences[35459]: DEBUG: Syncing settings...
11/4/14 7:31:26.939 AM System Preferences[35459]: DEBUG: Flushing rules to disk.
11/4/14 7:31:26.939 AM System Preferences[35459]: DEBUG: Done flushing rules to disk
11/4/14 7:31:26.939 AM System Preferences[35459]: DEBUG: Syncing watcher deployments.
11/4/14 7:31:26.940 AM System Preferences[35459]: DEBUG: Syncing deployments.
11/4/14 7:31:26.940 AM System Preferences[35459]: Could not generate new bookmark data for path /Volumes/8GB_USB/ztest: Error Domain=NSCocoaErrorDomain Code=260 "The file couldn’t be opened because it doesn’t exist."


Please have these log entries sent to the hazel.log file instead.

Thanks.
Smudge
 
Posts: 34
Joined: Mon Jul 15, 2013 10:44 pm

Re: Debug output in system log Tue Nov 04, 2014 1:18 pm • by Mr_Noodle
Errors from the preference pane are logged by System Preferences since Hazel in that case is running under that process. If Hazel (the UI) crashes, for instance, it does so under System Preferences so it makes sense to have the logs appear there.

You might want to consider turning off DEBUG logging until you have something specific to you want to diagnose.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support