Fix log message

This commit is contained in:
An Phan 2016-02-04 23:47:02 +08:00
parent 3d5c77d032
commit 4c90c35c28

View file

@ -141,11 +141,11 @@ class Media
*/
public function syncByWatchRecord(WatchRecordInterface $record, SyncMedia $syncCommand = null)
{
Log::info("New watch record received: $record");
Log::info("New watch record received: '$record'");
$path = $record->getPath();
if ($record->isFile()) {
Log::info("$record is a file.");
Log::info("'$path' is a file.");
// If the file has been deleted...
if ($record->isDeleted()) {
@ -170,7 +170,7 @@ class Media
}
// Record is a directory.
Log::info("$record is a directory.");
Log::info("'$path' is a directory.");
if ($record->isDeleted()) {
// The directory is removed. We remove all songs in it.