import current_app in log.py

Signed-off-by: Shashank Sahni <shredder12@gmail.com>