Hazel Log file rule

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

Moderator: Mr_Noodle

Hazel Log file rule Wed May 03, 2023 3:36 pm • by united
Folder
/Users/<username>/Library/Logs/Hazel

Rule
Image
Date Added is not in 10 minutes

do following:
Move to folder Trash

issue: The folder keeps on processing since I can see it in the hazel.log file generating this block of log text every couple of seconds. It didn't use to do that. I have verified if I disable it that it no longer generates the log file updates.

Log:

16777220-13427345 is the folder hazel

This entry repeats over and over.
2023-05-03 12:33:57.582 hazelworker[5388] Running worker (v5.2.1) for folder with identifier: 16777220-13427345.
2023-05-03 12:33:57.583 hazelworker[5388] ###Arch: x86_64
2023-05-03 12:33:57.583 hazelworker[5388] ###main load address: 0x10815f000
2023-05-03 12:33:57.584 hazelworker[5388] ###Hazel Core load address: 0x10842a000
2023-05-03 12:33:57.584 hazelworker[5388] ###Noodle load address: 0x108736000
2023-05-03 12:33:57.584 hazelworker[5388] ###CK load address: 0x10831c000
2023-05-03 12:33:57.610 hazelworker[5388] Processing folder Hazel
2023-05-03 12:33:59.613 hazelworker[5388] File Hazel.log is busy. Skipping for now.
2023-05-03 12:34:01.622 hazelworker[5388] Done processing folder Hazel

Question:
Is there a way to stop the folder being reprocessed every second and then logging?
united
 
Posts: 54
Joined: Wed Mar 14, 2012 3:48 pm

Re: Hazel Log file rule Thu May 04, 2023 9:04 am • by Mr_Noodle
You really should not be monitoring Hazel's log folder. This will create a loop as Hazel will process the folder, resulting in logs being written to, which will trigger Hazel to process the folder again.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel Log file rule Thu May 04, 2023 12:17 pm • by united
Yes, apparently that is the loop that is occurring here. But I'd like to keep my logs clean. So how would you go about doing it? Previously it wouldn't do this. I wouldn't see this log loop.
united
 
Posts: 54
Joined: Wed Mar 14, 2012 3:48 pm

Re: Hazel Log file rule Mon May 08, 2023 9:23 am • by Mr_Noodle
What do you mean by keeping the log files clean? Note that Hazel rotates the logs out on a weekly basis already.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel Log file rule Fri May 19, 2023 8:39 pm • by united
Mr_Noodle wrote:What do you mean by keeping the log files clean? Note that Hazel rotates the logs out on a weekly basis already.


I would like to have more control of my log files. whats the best way to achieve the following:
- watch the log folder of hazel
- clean logs at a 10 minute increment
- don't generate log loop
united
 
Posts: 54
Joined: Wed Mar 14, 2012 3:48 pm

Re: Hazel Log file rule Mon May 22, 2023 9:28 am • by Mr_Noodle
That's not possible. Anything Hazel does will write to the logs and that will cause Hazel to process the files in that folder.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support