added ebug infos for touch checks

This commit is contained in:
roberto@precise64
2012-04-25 08:37:23 +02:00
parent 8f10b8fece
commit 8791866ea0
2 changed files with 4 additions and 4 deletions
-4
View File
@@ -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)) {
+4
View File
@@ -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;
}