[vhffs-dev] [819] Removed stupid logs

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 819
Author:   gradator
Date:     2007-08-30 02:34:53 +0000 (Thu, 30 Aug 2007)

Log Message:
-----------
Removed stupid logs

Modified Paths:
--------------
    trunk/vhffs-robots/src/group_setquota.pl
    trunk/vhffs-robots/src/user_setquota.pl


Modified: trunk/vhffs-robots/src/group_setquota.pl
===================================================================
--- trunk/vhffs-robots/src/group_setquota.pl	2007-08-30 02:26:40 UTC (rev 818)
+++ trunk/vhffs-robots/src/group_setquota.pl	2007-08-30 02:34:53 UTC (rev 819)
@@ -52,14 +52,10 @@
 	my $blocks = $group->get_quota * 1024;
 	my $inodes = $group->get_quota * 1126400 / 100;
 
-	unless( Quota::setqlim($dev, $group->get_gid, $blocks, $blocks, $inodes, $inodes, 0, 1) )
+	if( Quota::setqlim($dev, $group->get_gid, $blocks, $blocks, $inodes, $inodes, 0, 1) )
 	{
-		Vhffs::Robots::vhffs_log( sprintf( "Update quota for group %s set %s" , $group->get_groupname , $group->get_quota ) , $vhffs);
+		printf("Cannot update quota for user %s (gid  %d), reason: %s\n", $group->get_groupname, $group->get_gid, Quota::strerr);
 	}
-	else
-	{
-		printf("Cannot update quota for group %s, reason: %s\n", $group->get_groupname, Quota::strerr);
-	}
 }
 
 Vhffs::Robots::unlock( $vhffs , "setquotagroup" );

Modified: trunk/vhffs-robots/src/user_setquota.pl
===================================================================
--- trunk/vhffs-robots/src/user_setquota.pl	2007-08-30 02:26:40 UTC (rev 818)
+++ trunk/vhffs-robots/src/user_setquota.pl	2007-08-30 02:34:53 UTC (rev 819)
@@ -53,14 +53,10 @@
 	my $blocks = $group->get_quota * 1024;
 	my $inodes = $group->get_quota * 1126400 / 100;
 
-	unless( Quota::setqlim($dev, $group->get_gid, $blocks, $blocks, $inodes, $inodes, 0, 1) )
+	if( Quota::setqlim($dev, $group->get_gid, $blocks, $blocks, $inodes, $inodes, 0, 1) )
 	{
-		Vhffs::Robots::vhffs_log( sprintf( "Update quota for user group %s set 1" , $user->get_username ) , $vhffs);
+		printf("Cannot update quota for user %s (gid  %d), reason: %s\n", $user->get_username, $group->get_gid, Quota::strerr);
 	}
-	else
-	{
-		printf("Cannot update quota for group %s, reason: %s\n", $user->get_username, Quota::strerr);
-	}
 }
 
 Vhffs::Robots::unlock( $vhffs , "setquotauser" );


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/