<s> from galah . web import app <EOL> from flask . ext . login import logout_user , current_user <EOL> from galah . web . auth import FlaskUser <EOL> from flask import redirect , url_for , flash <EOL> from galah . web . util import GalahWebAdapter <EOL> import logging <EOL> logger = GalahWebAdapter ( logging . getLogger ( "<STR_LIT>" ) ) <EOL> @ app . route ( "<STR_LIT>" ) <EOL> def logout ( ) : <EOL> if current_user . is_authenticated ( ) : <EOL> logger . info ( "<STR_LIT>" ) <EOL> logout_user ( ) <EOL> flash ( "<STR_LIT>" <EOL> "<STR_LIT>" , category = "<STR_LIT:message>" ) <EOL> else : <EOL> logger . info ( "<STR_LIT>" ) <EOL> flash ( "<STR_LIT>" , <EOL> category = "<STR_LIT:error>" ) <EOL> return redirect ( url_for ( "<STR_LIT>" ) ) </s>
