Fixed logging

This commit is contained in:
Jesse van den Kieboom 2005-11-19 13:08:46 +00:00
parent 72c56d3d74
commit 371e2a47d6
1 changed files with 3 additions and 7 deletions

View File

@ -295,8 +295,7 @@ gm_mcp_session_send_multiline(GmMcpSession *session, gchar const *data_tag,
while (lines) {
msg_line = g_strconcat(msg, (gchar *)(lines->data), NULL);
gm_world_sendln(session->priv->world, msg_line);
gm_world_log(session->priv->world, LOG_MCP_OUT, msg_line);
gm_world_sendln_log(session->priv->world, msg_line, LOG_MCP_OUT);
g_free(msg_line);
lines = lines->next;
@ -305,9 +304,7 @@ gm_mcp_session_send_multiline(GmMcpSession *session, gchar const *data_tag,
g_free(msg);
msg_line = g_strconcat("#$#: ", data_tag, NULL);
gm_world_sendln(session->priv->world, msg_line);
gm_world_log(session->priv->world, LOG_MCP_OUT, msg_line);
gm_world_sendln_log(session->priv->world, msg_line, LOG_MCP_OUT);
g_free(msg_line);
}
@ -352,8 +349,7 @@ gm_mcp_session_send_simple(GmMcpSession *session, gchar const *pname,
va_end(args);
}
gm_world_sendln(session->priv->world, msg->str);
gm_world_log(session->priv->world, LOG_MCP_OUT, msg->str);
gm_world_sendln_log(session->priv->world, msg->str, LOG_MCP_OUT);
g_string_free(msg, TRUE);
}