/*
Copyright (C) 2016 andrea rota <a@xelera.eu>

This file is part of Pattrn - http://pattrn.co/.

Pattrn is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Pattrn is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with Pattrn.  If not, see <http://www.gnu.org/licenses/>.
*/

import { get_instance_configuration } from '../settings.js';

export function hello_devs_hello() {
  console.log(
String.raw`
 _    _      _ _         _____
| |  | |    | | |       |  __ \
| |__| | ___| | | ___   | |  | | _____   _____
|  __  |/ _ \ | |/ _ \  | |  | |/ _ \ \ / / __|
| |  | |  __/ | | (_) | | |__| |  __/\ V /\__ \
|_|  |_|\___|_|_|\___/  |_____/ \___| \_/ |___/

`);
}

@@ -1098,8 +1098,245 @@
 %0A%0A%60);%0A%7D%0A
+%0Aexport function log_dropped_row(row, reason) %7B%0A  if(get_instance_configuration().environment !== 'production') %7B%0A    console.log(%60Removing row with event_ID $%7Brow.event_ID%7D from active dataset: $%7Breason%7D.%60);%0A    console.log(row);%0A  %7D%0A%7D%0A

support for logging dropped rows to console