How to get the feeds log entry from hook_feeds_after_import I have a feed and I want to email the log entries from feeds_log after it has completed a run. I thought that if I could get the feed_id, I could query the db to get the log entries. 

I'm using hook_feeds_after_import(), which gives me access to the $source object, but in looking through some documentation, I don't see a way to get the feed_id.

How can I get the log entries from a feed run?
From hook_feeds_after_import($source), I have access to $source-&gt;imported, which is the timestamp value in feeds_log.request_time. So I have

$result = db_query('SELECT message, variables FROM {feeds_log} WHERE request_time = :imported',
    array(':imported' =&gt; $source-&gt;imported) );