old_contents: /*
  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 /\__ \
  |_|  |_|\___|_|_|\___/  |_____/ \___| \_/ |___/
  
  `);
  }
  
new_contents: /*
  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 /\__ \
  |_|  |_|\___|_|_|\___/  |_____/ \___| \_/ |___/
  
  `);
  }
  
  export function log_dropped_row(row, reason) {
    if(get_instance_configuration().environment !== 'production') {
      console.log(`Removing row with event_ID ${row.event_ID} from active dataset: ${reason}.`);
      console.log(row);
    }
  }
  
subject: support for logging dropped rows to console