Skip to content
Browse files

added ebug infos for touch checks

  • Loading branch information...
1 parent 8f10b8f commit 8791866ea07bb08eaaf1a9b9a2adc47b98870eca roberto@precise64 committed Apr 25, 2012
Showing with 4 additions and 4 deletions.
  1. +0 −4 socket.c
  2. +4 −0 utils.c
View
4 socket.c
@@ -1013,10 +1013,6 @@ void uwsgi_add_socket_from_fd(struct uwsgi_socket *uwsgi_sock, int fd) {
union uwsgi_sockaddr usa;
int abstract = 0;
-#ifdef UWSGI_DEBUG
- uwsgi_log("creating socket from fd %d\n", fd);
-#endif
-
socket_type_len = sizeof(struct sockaddr_un);
gsa.sa = &usa.sa;
if (!getsockname(fd, gsa.sa, &socket_type_len)) {
View
4 utils.c
@@ -4080,6 +4080,10 @@ char *uwsgi_check_touches(struct uwsgi_string_list *touch_list) {
else {
if (!touch->custom) touch->custom = (uint64_t) tr_st.st_mtime;
if ((uint64_t) tr_st.st_mtime > touch->custom) {
+#ifdef UWSGI_DEBUG
+ uwsgi_log("[uwsgi-check-touches] modification detected on %s: %llu -> %llu\n", touch->value, (unsigned long long) touch->custom,
+ (unsigned long long) tr_st.st_mtime);
+#endif
touch->custom = (uint64_t) tr_st.st_mtime;
return touch->value;
}

0 comments on commit 8791866

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