file_storage: Remove debug leftovers and add actual debug statements

This commit is contained in:
Marco Trevisan (Treviño) 2020-12-17 03:17:08 +01:00 committed by Benjamin Berg
parent c685f0d34c
commit 4cfa6b5b37

View file

@ -155,7 +155,6 @@ file_storage_print_data_save (FpPrint *print)
return r;
}
//fp_dbg("saving to %s", path);
g_file_set_contents (path, buf, len, &err);
if (err)
{
@ -165,6 +164,8 @@ file_storage_print_data_save (FpPrint *print)
return err->code;
}
g_debug ("file_storage_print_data_save(): print saved to %s", path);
return 0;
}
@ -176,7 +177,6 @@ load_from_file (char *path, FpPrint **print)
g_autofree char *contents = NULL;
FpPrint *new;
//fp_dbg("from %s", path);
g_file_get_contents (path, &contents, &length, &err);
if (err)
{