log update function & deploy bug fix.