Browse Source

Logger ident allignement

Yann Weber 4 years ago
parent
commit
7411301254
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      src/main.c
  2. 2
    2
      src/responder.c

+ 1
- 1
src/main.c View File

@@ -120,7 +120,7 @@ int main(int argc, char **argv)
120 120
 	pool_handler_pid = 0;
121 121
 	default_conf();
122 122
 	pyfcgi_logger_init();
123
-	pyfcgi_logger_set_ident("pyfcgi(main)");
123
+	pyfcgi_logger_set_ident("MainProc");
124 124
 	if(parse_args(argc, argv))
125 125
 	{
126 126
 		return 1;

+ 2
- 2
src/responder.c View File

@@ -59,7 +59,7 @@ int responder_loop()
59 59
 	timeout.tv_nsec = 100000000;
60 60
 	idle = 0;
61 61
 
62
-	pyfcgi_logger_set_ident("pool");
62
+	pyfcgi_logger_set_ident("Workpool");
63 63
 
64 64
 	if(PyFCGI_conf.pool_timeout)
65 65
 	{
@@ -292,7 +292,7 @@ pid_t spawn(int wrk_id)
292 292
 	else if(!res)
293 293
 	{
294 294
 		// Child process
295
-		snprintf(ident, 128, "Worker[%d]", wrk_id);
295
+		snprintf(ident, 128, "Worker%2d", wrk_id);
296 296
 		pyfcgi_logger_set_ident(ident);
297 297
 		// Set handler for SIGINT & SIGTERM
298 298
 		if(sigaction(SIGINT, &act, NULL))

Loading…
Cancel
Save