mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Logs: no ODBC user and password in messages about a log
A log string is shown only up to its first comma, where an ODBC string goes on with the user and the password: in the message on a log which failed, and in the errors on a log or -l which cannot be opened. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d613750b94
commit
e87ffcd7e1
4 files changed
+16
-3
No files matched your search
+2
-1
@@ -322,7 +322,8 @@ static int srvprepare(struct srvstart *s, int argc, char **argv){
|
||||
/* the same log the log command, or another service,
|
||||
opened is shared with it */
|
||||
if(!(lg = logget((unsigned char *)argv[i] + 2, NONE))){
|
||||
perror(argv[i] + 2);
|
||||
fprintf(stderr, "Unable to open log %.*s: %s\n",
|
||||
(int)logselen((unsigned char *)argv[i] + 2), argv[i] + 2, strerror(errno));
|
||||
return 1;
|
||||
}
|
||||
logput(srv->logger);
|
||||
|
||||
Reference in new issue
Block a user