Commits

Apostolis Bessas  committed da0b9df

Remove all references to ERRMSG from tx script.

  • Participants
  • Parent commits b2d372e

Comments (0)

Files changed (1)

  • +3 -3
    tx
 
 from txclib import utils
 from txclib import get_version
-from txclib.log import set_log_level
+from txclib.log import set_log_level, logger
 
 reload(sys) # WTF? Otherwise setdefaultencoding doesn't work
 
     try:
         utils.exec_command(cmd, args[1:], path_to_tx)
     except utils.UnknownCommandError:
-        utils.ERRMSG("tx: Command %s not found" % cmd)
+        logger.error("tx: Command %s not found" % cmd)
     except SystemExit:
         sys.exit()
     except:
             traceback.print_exc()
         else:
             formatted_lines = traceback.format_exc().splitlines()
-            utils.ERRMSG(formatted_lines[-1])
+            logger.error(formatted_lines[-1])
         sys.exit(1)
 
 # Run baby :) ... run