[Pkg-voip-commits] r5519 - in /freepbx-modules/trunk/debian: changelog patches/logfile_messages patches/series

tzafrir-guest at alioth.debian.org tzafrir-guest at alioth.debian.org
Wed Apr 9 09:58:20 UTC 2008


Author: tzafrir-guest
Date: Wed Apr  9 09:58:20 2008
New Revision: 5519

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5519
Log:
Patch logfile_messages: show /var/log/messages .

Added:
    freepbx-modules/trunk/debian/patches/logfile_messages
Modified:
    freepbx-modules/trunk/debian/changelog
    freepbx-modules/trunk/debian/patches/series

Modified: freepbx-modules/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/freepbx-modules/trunk/debian/changelog?rev=5519&op=diff
==============================================================================
--- freepbx-modules/trunk/debian/changelog (original)
+++ freepbx-modules/trunk/debian/changelog Wed Apr  9 09:58:20 2008
@@ -15,5 +15,6 @@
   * Patch sqlite_trunk_query: Yet another sqlite fix.
   * Patch checkperms_indications: check the status of fopen.
   * Dump config files from the core modules to /etc/asterisk/ .
+  * Patch logfile_messages: show /var/log/messages .
 
- -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Thu,  7 Feb 2008 01:02:23 +0200
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Wed, 09 Apr 2008 12:57:32 +0300

Added: freepbx-modules/trunk/debian/patches/logfile_messages
URL: http://svn.debian.org/wsvn/pkg-voip/freepbx-modules/trunk/debian/patches/logfile_messages?rev=5519&op=file
==============================================================================
--- freepbx-modules/trunk/debian/patches/logfile_messages (added)
+++ freepbx-modules/trunk/debian/patches/logfile_messages Wed Apr  9 09:58:20 2008
@@ -1,0 +1,45 @@
+Change the log file that is viewed in the log file module
+to /var/log/asterisk/messages .
+
+Upstream issue: http://freepbx.org/trac/ticket/2780 .
+--- trunk.orig/modules/logfiles/page.logfiles.php
++++ trunk/modules/logfiles/page.logfiles.php
+@@ -9,22 +9,34 @@ $action = isset($_REQUEST['action']) ? $
+ <div class="content">
+ <?php
+ 
++// For fans of the "full" log:
++//$log_file = 'full';
++//$log_file = 'Full debug';
++
++// Default of Debian:
++$log_file = 'messages';
++$log_name = '';
++
++$log_file_full = $amp_conf['ASTLOGDIR']."/$log_file";
++
+ switch($action) {
+ 	case 'showlog':
+ ?>
+ 		<h2>
+-			<?php echo sprintf(_('%s - last 2000 lines'),$amp_conf['ASTLOGDIR']."/full") ?>
++			<?php echo sprintf(_('%s - last 2000 lines'),$log_file_full) ?>
+ 		</h2>
+-		<a href="config.php?<?php echo "display=$display&type=$type&action=showlog"?>"><?php echo _("Redisplay Asterisk Full debug log (last 2000 lines)") ?></a><br>
++		<a href="config.php?<?php echo
++		"display=$display&type=$type&action=showlog"?>"><?php echo _("Redisplay Asterisk $log_name log (last 2000 lines)") ?></a><br>
+ 		<hr><br>
+ 		<?php
+-		echo system ('tail --line=2000 '.$amp_conf['ASTLOGDIR'].'/full | sed -e "s/$/<br>/"'); 
++		echo system ('tail --line=2000 '.$log_file_full.' | sed -e "s/$/<br>/"'); 
+ 		break;
+ 
+ 	default:
+ 		echo "<h2>"._("Asterisk Log Files")."</h2>";
+ ?>
+-				<a href="config.php?<?php echo "display=$display&type=$type&action=showlog"?>"><?php echo _("Display Asterisk Full debug log (last 2000 lines)") ?></a><br>
++				<a href="config.php?<?php echo
++				"display=$display&type=$type&action=showlog"?>"><?php echo _("Display Asterisk $log_name log (last 2000 lines)") ?></a><br>
+ 				<br><br><br><br><br><br><br><br><br><br><br><br>
+ <?php
+     break;

Modified: freepbx-modules/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-voip/freepbx-modules/trunk/debian/patches/series?rev=5519&op=diff
==============================================================================
--- freepbx-modules/trunk/debian/patches/series (original)
+++ freepbx-modules/trunk/debian/patches/series Wed Apr  9 09:58:20 2008
@@ -1,2 +1,3 @@
 sqlite_trunk_query
 checkperms_indications
+logfile_messages




More information about the Pkg-voip-commits mailing list