Browse Source

provisioning: add logging for timezone

Signed-off-by: Sumner Evans <sumner@beeper.com>
Sumner Evans 2 năm trước cách đây
mục cha
commit
e1b734e52f
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      provisioning.go

+ 3 - 0
provisioning.go

@@ -622,8 +622,11 @@ func (prov *ProvisioningAPI) Login(w http.ResponseWriter, r *http.Request) {
 	})
 	})
 
 
 	if userTimezone := r.URL.Query().Get("tz"); userTimezone != "" {
 	if userTimezone := r.URL.Query().Get("tz"); userTimezone != "" {
+		user.log.Debug("Setting timezone to %s", userTimezone)
 		user.Timezone = userTimezone
 		user.Timezone = userTimezone
 		user.Update()
 		user.Update()
+	} else {
+		user.log.Debug("No timezone provided in request")
 	}
 	}
 
 
 	qrChan, err := user.Login(ctx)
 	qrChan, err := user.Login(ctx)