Bug/fix missing error in redis

Fix the Winston buffering problem by flushing each message to disk in the log function.