sesman: reflect review suggestions on cleanup_sockets
* Use LOG_LEVEL_WARNING for the deletion failure * Log the error condition when the deletion failed
This commit is contained in:
parent
5114d1ee64
commit
31214f15a6
@ -1162,8 +1162,9 @@ cleanup_sockets(int display)
|
|||||||
LOG(LOG_LEVEL_DEBUG, "cleanup_sockets: deleting %s", file);
|
LOG(LOG_LEVEL_DEBUG, "cleanup_sockets: deleting %s", file);
|
||||||
if (g_file_delete(file) == 0)
|
if (g_file_delete(file) == 0)
|
||||||
{
|
{
|
||||||
LOG(LOG_LEVEL_DEBUG,
|
LOG(LOG_LEVEL_WARNING,
|
||||||
"cleanup_sockets: failed to delete %s", file);
|
"cleanup_sockets: failed to delete %s (%s)",
|
||||||
|
file, g_get_strerror());
|
||||||
error++;
|
error++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1174,8 +1175,9 @@ cleanup_sockets(int display)
|
|||||||
LOG(LOG_LEVEL_DEBUG, "cleanup_sockets: deleting %s", file);
|
LOG(LOG_LEVEL_DEBUG, "cleanup_sockets: deleting %s", file);
|
||||||
if (g_file_delete(file) == 0)
|
if (g_file_delete(file) == 0)
|
||||||
{
|
{
|
||||||
LOG(LOG_LEVEL_DEBUG,
|
LOG(LOG_LEVEL_WARNING,
|
||||||
"cleanup_sockets: failed to delete %s", file);
|
"cleanup_sockets: failed to delete %s (%s)",
|
||||||
|
file, g_get_strerror());
|
||||||
error++;
|
error++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1186,8 +1188,9 @@ cleanup_sockets(int display)
|
|||||||
LOG(LOG_LEVEL_DEBUG, "cleanup_sockets: deleting %s", file);
|
LOG(LOG_LEVEL_DEBUG, "cleanup_sockets: deleting %s", file);
|
||||||
if (g_file_delete(file) == 0)
|
if (g_file_delete(file) == 0)
|
||||||
{
|
{
|
||||||
LOG(LOG_LEVEL_DEBUG,
|
LOG(LOG_LEVEL_WARNING,
|
||||||
"cleanup_sockets: failed to delete %s", file);
|
"cleanup_sockets: failed to delete %s (%s)",
|
||||||
|
file, g_get_strerror());
|
||||||
error++;
|
error++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1198,8 +1201,9 @@ cleanup_sockets(int display)
|
|||||||
LOG(LOG_LEVEL_DEBUG, "cleanup_sockets: deleting %s", file);
|
LOG(LOG_LEVEL_DEBUG, "cleanup_sockets: deleting %s", file);
|
||||||
if (g_file_delete(file) == 0)
|
if (g_file_delete(file) == 0)
|
||||||
{
|
{
|
||||||
LOG(LOG_LEVEL_DEBUG,
|
LOG(LOG_LEVEL_WARNING,
|
||||||
"cleanup_sockets: failed to delete %s", file);
|
"cleanup_sockets: failed to delete %s (%s)",
|
||||||
|
file, g_get_strerror());
|
||||||
error++;
|
error++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1213,8 +1217,9 @@ cleanup_sockets(int display)
|
|||||||
LOG(LOG_LEVEL_DEBUG, "cleanup_sockets: deleting %s", file);
|
LOG(LOG_LEVEL_DEBUG, "cleanup_sockets: deleting %s", file);
|
||||||
if (g_file_delete(file) == 0)
|
if (g_file_delete(file) == 0)
|
||||||
{
|
{
|
||||||
LOG(LOG_LEVEL_DEBUG,
|
LOG(LOG_LEVEL_WARNING,
|
||||||
"cleanup_sockets: failed to delete %s", file);
|
"cleanup_sockets: failed to delete %s (%s)",
|
||||||
|
file, g_get_strerror());
|
||||||
error++;
|
error++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1225,8 +1230,9 @@ cleanup_sockets(int display)
|
|||||||
LOG(LOG_LEVEL_DEBUG, "cleanup_sockets: deleting %s", file);
|
LOG(LOG_LEVEL_DEBUG, "cleanup_sockets: deleting %s", file);
|
||||||
if (g_file_delete(file) == 0)
|
if (g_file_delete(file) == 0)
|
||||||
{
|
{
|
||||||
LOG(LOG_LEVEL_DEBUG,
|
LOG(LOG_LEVEL_WARNING,
|
||||||
"cleanup_sockets: failed to delete %s", file);
|
"cleanup_sockets: failed to delete %s (%s)",
|
||||||
|
file, g_get_strerror());
|
||||||
error++;
|
error++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user