From 227686cce8bcb5f6789c3ed495317cbfddc2af3d Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Thu, 27 Aug 2009 12:54:51 +0000 Subject: [PATCH] web: print the key parameter in drush logger create --- web/drupal/modules/logger/logger.drush.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/drupal/modules/logger/logger.drush.inc b/web/drupal/modules/logger/logger.drush.inc index feae028..4f79a95 100644 --- a/web/drupal/modules/logger/logger.drush.inc +++ b/web/drupal/modules/logger/logger.drush.inc @@ -32,7 +32,7 @@ function logger_drush_command() { /** * Drush command callbacks. */ -function _logger_create($serial, $version, $uid = 0) { +function _logger_create($serial, $version = 0, $uid = 0) { // guard against duplicating entries for the same S/N $count = db_result(db_query("SELECT COUNT(device) FROM {logger_devices} WHERE serial = %d", $serial)); if ($count > 0) { @@ -72,7 +72,7 @@ function _logger_create($serial, $version, $uid = 0) { } } - if (!drush_get_error()) drush_log(dt('Successfully created the device: @device and meter: @meter entries for S/N: @serial', array('@device' => $device, '@meter' => $meter, '@serial' => $serial)), 'ok'); + if (!drush_get_error()) drush_log(dt('Successfully created the device/key: @device / @key and meter: @meter entries for S/N: @serial', array('@device' => $device, '@key' => $sha, '@meter' => $meter, '@serial' => $serial)), 'ok'); } function _logger_assign($serial, $uid) {