alphred icon indicating copy to clipboard operation
alphred copied to clipboard

Suppress Warnings related log file renaming

Open Critter opened this issue 10 years ago • 2 comments

So first. Thanks for the framework..

Today I noticed my scripts started to output these warnings:

Warning: rename(/Users/critter/Library/Application Support/Alfred 2/Workflow Data/com.413critter.zoho//Users/critter/Library/Application Support/Alfred 2/Workflow Data/com.413critter.zoho/debug.log.log,.log.1.log): No such file or directory in phar:///Users/critter/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.21A14F33-2737-4B62-86CD-F8C2CD8C7FDC/Alphred.phar/classes/Log.php on line 203

Warning: file_put_contents(/Users/critter/Library/Application Support/Alfred 2/Workflow Data/com.413critter.zoho//Users/critter/Library/Application Support/Alfred 2/Workflow Data/com.413critter.zoho/debug.log.log): failed to open stream: No such file or directory in phar:///Users/critter/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.21A14F33-2737-4B62-86CD-F8C2CD8C7FDC/Alphred.phar/classes/Log.php on line 206

Warning: rename(/Users/critter/Library/Application Support/Alfred 2/Workflow Data/com.413critter.zoho//Users/critter/Library/Application Support/Alfred 2/Workflow Data/com.413critter.zoho/debug.log.log,.log.1.log): No such file or directory in phar:///Users/critter/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.21A14F33-2737-4B62-86CD-F8C2CD8C7FDC/Alphred.phar/classes/Log.php on line 203

Warning: file_put_contents(/Users/critter/Library/Application Support/Alfred 2/Workflow Data/com.413critter.zoho//Users/critter/Library/Application Support/Alfred 2/Workflow Data/com.413critter.zoho/debug.log.log): failed to open stream: No such file or directory in phar:///Users/critter/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.21A14F33-2737-4B62-86CD-F8C2CD8C7FDC/Alphred.phar/classes/Log.php on line 206

Warning: rename(/Users/critter/Library/Application Support/Alfred 2/Workflow Data/com.413critter.zoho//Users/critter/Library/Application Support/Alfred 2/Workflow Data/com.413critter.zoho/debug.log.log,.log.1.log): No such file or directory in phar:///Users/critter/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.21A14F33-2737-4B62-86CD-F8C2CD8C7FDC/Alphred.phar/classes/Log.php on line 203

Warning: file_put_contents(/Users/critter/Library/Application Support/Alfred 2/Workflow Data/com.413critter.zoho//Users/critter/Library/Application Support/Alfred 2/Workflow Data/com.413critter.zoho/debug.log.log): failed to open stream: No such file or directory in phar:///Users/critter/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.21A14F33-2737-4B62-86CD-F8C2CD8C7FDC/Alphred.phar/classes/Log.php on line 206

Do you have any suggestion?

Critter avatar Jun 22 '15 14:06 Critter

It looks like there is a bug with the log rotation functions in that they're pulling the wrong paths. I'll look into it.

shawnrice avatar Jun 22 '15 22:06 shawnrice

This should be fixed now. Just download the newest version of the phar from the repo. Thanks for catching it.

shawnrice avatar Jun 23 '15 04:06 shawnrice