Added logging for a DB hammering scenario

When a flag gets queried by the application that doesn't exist in the DB, nothing gets cached. This means that on a high-traffic website, that flag will pound the database with many requests. This scenario should be logged to reduce DB queries.
You should use percent formatting and pass the format parameters to the `warning()` method (instead of doing string interpolation directly).