Removed debug messages
This commit is contained in:
parent
ae389dfe86
commit
71901d2d1a
|
@ -233,7 +233,7 @@ gm_editor_write_lines(GmEditor *editor) {
|
|||
GList *line;
|
||||
|
||||
if (fd == -1) {
|
||||
GM_DEBUG("Couldn't open file");
|
||||
gm_debug_msg(DEBUG_ALWAYS, "Couldn't open file");
|
||||
g_free(tmp);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -241,15 +241,15 @@ gm_editor_write_lines(GmEditor *editor) {
|
|||
// Write lines
|
||||
for (line = editor->priv->lines; line; line = line->next) {
|
||||
if (write(fd, line->data, strlen(line->data)) == -1) {
|
||||
GM_DEBUG("Writing failed");
|
||||
gm_debug_msg(DEBUG_ALWAYS, "Writing failed");
|
||||
break;
|
||||
} else {
|
||||
GM_DEBUG("Written: %s", line->data);
|
||||
gm_debug_msg(DEBUG_ALWAYS, "Written: %s", line->data);
|
||||
}
|
||||
|
||||
if (line->next) {
|
||||
if (write(fd, "\n", 1) == -1) {
|
||||
GM_DEBUG("Writing failed");
|
||||
gm_debug_msg(DEBUG_ALWAYS, "Writing failed");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue