Commit ce2329b0 authored by Zeyu DONG's avatar Zeyu DONG
Browse files

logging doesn't work well in python2

parent 649ebfba
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
#!/usr/bin/python
#!/usr/bin/python3

import json
import logging
@@ -123,4 +123,3 @@ if __name__ == '__main__':
        logger.error('{msg}, consider updating \'captive_portal_server\''.format(msg=str(err)))
    except Exception as e:
        logger.error("".join(traceback.format_exc()))
 
 No newline at end of file