Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added ebug infos for touch checks

  • Loading branch information...
commit 8791866ea07bb08eaaf1a9b9a2adc47b98870eca 1 parent 8f10b8f
roberto@precise64 authored

Showing 2 changed files with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +0 4 socket.c
  2. +4 0 utils.c
4 socket.c
@@ -1013,10 +1013,6 @@ void uwsgi_add_socket_from_fd(struct uwsgi_socket *uwsgi_sock, int fd) {
1013 1013 union uwsgi_sockaddr usa;
1014 1014 int abstract = 0;
1015 1015
1016   -#ifdef UWSGI_DEBUG
1017   - uwsgi_log("creating socket from fd %d\n", fd);
1018   -#endif
1019   -
1020 1016 socket_type_len = sizeof(struct sockaddr_un);
1021 1017 gsa.sa = &usa.sa;
1022 1018 if (!getsockname(fd, gsa.sa, &socket_type_len)) {
4 utils.c
@@ -4080,6 +4080,10 @@ char *uwsgi_check_touches(struct uwsgi_string_list *touch_list) {
4080 4080 else {
4081 4081 if (!touch->custom) touch->custom = (uint64_t) tr_st.st_mtime;
4082 4082 if ((uint64_t) tr_st.st_mtime > touch->custom) {
  4083 +#ifdef UWSGI_DEBUG
  4084 + uwsgi_log("[uwsgi-check-touches] modification detected on %s: %llu -> %llu\n", touch->value, (unsigned long long) touch->custom,
  4085 + (unsigned long long) tr_st.st_mtime);
  4086 +#endif
4083 4087 touch->custom = (uint64_t) tr_st.st_mtime;
4084 4088 return touch->value;
4085 4089 }

0 comments on commit 8791866

Please sign in to comment.
Something went wrong with that request. Please try again.