mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
Optionally log message send times on the client
(imported from commit 900a513496b7796173a7685a55b110b63024f574)
This commit is contained in:
@@ -355,7 +355,11 @@ function send_message() {
|
|||||||
request.to = JSON.stringify([request.to]);
|
request.to = JSON.stringify([request.to]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var start_time = new Date();
|
||||||
function success() {
|
function success() {
|
||||||
|
if (feature_flags.log_send_times) {
|
||||||
|
blueslip.log("send time: " + (new Date() - start_time));
|
||||||
|
}
|
||||||
$("#new_message_content").val('').focus();
|
$("#new_message_content").val('').focus();
|
||||||
autosize_textarea();
|
autosize_textarea();
|
||||||
$("#send-status").hide(0);
|
$("#send-status").hide(0);
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ var customer4_realms = [
|
|||||||
];
|
];
|
||||||
var is_customer4 = _.contains(customer4_realms, page_params.domain);
|
var is_customer4 = _.contains(customer4_realms, page_params.domain);
|
||||||
|
|
||||||
|
// Manually-flipped debugging flags
|
||||||
|
exports.log_send_times = false;
|
||||||
|
|
||||||
// Permanent realm-specific stuff:
|
// Permanent realm-specific stuff:
|
||||||
|
|
||||||
exports.twenty_four_hour_time = internal_24_hour_people || iceland;
|
exports.twenty_four_hour_time = internal_24_hour_people || iceland;
|
||||||
|
|||||||
Reference in New Issue
Block a user