]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
drop.log: log deprecation warning if used
authorJason Ish <jason.ish@oisf.net>
Tue, 1 Oct 2019 15:13:22 +0000 (09:13 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 3 Oct 2019 13:48:11 +0000 (15:48 +0200)
src/log-droplog.c

index 1e11ea31e90374b3e31955ac88691b9e1428ef1e..6a523a7d01f0ea24f6315390883346bf7e3220b5 100644 (file)
@@ -137,6 +137,10 @@ static void LogDropLogDeInitCtx(OutputCtx *output_ctx)
  */
 static OutputInitResult LogDropLogInitCtx(ConfNode *conf)
 {
+    SCLogWarning(SC_WARN_DEPRECATED,
+        "The drop log has been deprecated and will be removed by "
+        "June 2020. Please use eve-log.");
+
     OutputInitResult result = { NULL, false };
     if (OutputDropLoggerEnable() != 0) {
         SCLogError(SC_ERR_CONF_YAML_ERROR, "only one 'drop' logger "