Clean up log output

No need to prefix each line with the program name; this was pretty
inconsistent anyway. The only place where log output needs to identify
the outputting program is when syslog is being used, which is done
anyway.
This commit is contained in:
Ian Barwick
2015-03-09 12:00:05 +09:00
parent bdf1696b58
commit abf92883a8
6 changed files with 2843 additions and 280 deletions

View File

@@ -98,7 +98,7 @@ create_dir(char *dir)
if (mkdir_p(dir, 0700) == 0)
return true;
log_err(_("Could not create directory \"%s\": %s\n"),
log_err(_("unable to create directory \"%s\": %s\n"),
dir, strerror(errno));
return false;
@@ -255,7 +255,7 @@ create_pg_dir(char *dir, bool force)
if (!create_dir(dir))
{
log_err(_("couldn't create directory \"%s\"...\n"),
log_err(_("unable to create directory \"%s\"...\n"),
dir);
return false;
}
@@ -267,7 +267,7 @@ create_pg_dir(char *dir, bool force)
if (!set_dir_permissions(dir))
{
log_err(_("could not change permissions of directory \"%s\": %s\n"),
log_err(_("unable to change permissions of directory \"%s\": %s\n"),
dir, strerror(errno));
return false;
}