def FormatLogMessage(log_type, log_msg):
  if log_type != constants.ELOG_MESSAGE:
    log_msg = str(log_msg)

  return utils.SafeEncode(log_msg)
Ctor.
dataset/ETHPy150Open ganeti/ganeti/lib/cli.py/FormatLogMessage--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/datastore_entities.py/GdKind.__init__