Diff

mod_statistics_statsman/mod_statistics_statsman.lua @ 4595:bac3dae031ee

Add note of incompatibility with trunk since 5f15ab7c6ae5
author Kim Alvefur <zash@zash.se>
date Sat, 19 Jun 2021 12:55:14 +0200
parent 3610:78885053cd80
line wrap: on
line diff
--- a/mod_statistics_statsman/mod_statistics_statsman.lua	Wed Jun 16 17:32:43 2021 +0200
+++ b/mod_statistics_statsman/mod_statistics_statsman.lua	Sat Jun 19 12:55:14 2021 +0200
@@ -5,6 +5,8 @@
 local filters = require "util.filters";
 local serialize = require "util.serialization".serialize;
 
+assert(statsman.get_stats, "not compatible with trunk based on openmetrics");
+
 local statistics_interval = module:context("*"):get_option_number("statistics_interval", 60);
 if module:context("*"):get_option("statistics", "internal") ~= "internal" then
 	module:log("error", "Not using internal statistics, can't do anyting");