Skip to content

Commit

Permalink
Merge pull request #2685 from de1987/fix-unfriendly-log-message
Browse files Browse the repository at this point in the history
fix: Bit more friendly log messages
  • Loading branch information
xrmx authored Oct 26, 2024
2 parents a0481fe + 4c3ddf1 commit 1189230
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ void uwsgi_receive_signal(int fd, char *name, int id) {

destroy:
// better to kill the whole worker...
uwsgi_log_verbose("uWSGI %s %d screams: UAAAAAAH my master disconnected: i will kill myself !!!\n", name, id);
uwsgi_log_verbose("uWSGI %s %d error: the master disconnected from this worker. Shutting down the worker.\n", name, id);
end_me(0);

}
2 changes: 1 addition & 1 deletion core/uwsgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ void reap_them_all(int signum) {

void harakiri() {

uwsgi_log("\nF*CK !!! i must kill myself (pid: %d app_id: %d)...\n", uwsgi.mypid, uwsgi.wsgi_req->app_id);
uwsgi_log("\nKilling the current process (pid: %d app_id: %d)...\n", uwsgi.mypid, uwsgi.wsgi_req->app_id);

if (!uwsgi.master_process) {
uwsgi_log("*** if you want your workers to be automatically respawned consider enabling the uWSGI master process ***\n");
Expand Down

0 comments on commit 1189230

Please sign in to comment.