diff --git a/HISTORY b/HISTORY index fb0a796..7010c77 100644 --- a/HISTORY +++ b/HISTORY @@ -1,7 +1,8 @@ -Version 1.13 2015-01-28 +Version 1.13 2015-02-27 * support php extension * php extention export simple_hash and time33_hash + * set_run_by log more info Version 1.12 2014-12-05 * bug fixed: must check the return value of vsnprintf diff --git a/src/shared_func.c b/src/shared_func.c index f6f08fa..e9b4fac 100644 --- a/src/shared_func.c +++ b/src/shared_func.c @@ -1419,8 +1419,8 @@ int set_run_by(const char *group_name, const char *username) { nErrNo = errno != 0 ? errno : ENOENT; logError("file: "__FILE__", line: %d, " \ - "getgrnam fail, errno: %d, error info: %s.", \ - __LINE__, nErrNo, STRERROR(nErrNo)); + "getgrnam %s fail, errno: %d, error info: %s.", \ + __LINE__, group_name, nErrNo, STRERROR(nErrNo)); return nErrNo; } @@ -1441,8 +1441,8 @@ int set_run_by(const char *group_name, const char *username) { nErrNo = errno != 0 ? errno : ENOENT; logError("file: "__FILE__", line: %d, " \ - "getpwnam fail, errno: %d, error info: %s.", \ - __LINE__, nErrNo, STRERROR(nErrNo)); + "getpwnam %s fail, errno: %d, error info: %s.", \ + __LINE__, username, nErrNo, STRERROR(nErrNo)); return nErrNo; }