[otrs-cvs] otrs/Kernel/System Main.pm,1.63,1.63.2.1

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/Kernel/System
In directory lancelot:/tmp/cvs-serv6101/Kernel/System

Modified Files:
      Tag: rel-3_1
	Main.pm 
Log Message:
 - 2013-01-28 Fixed bug#8470 - otrs.GenericAgent.pl reports: Can't open 
    '/opt/otrs/otrs_vemco/var/tmp/CacheFileStorable/DynamicField/f3b7e10730fb6c9cab5ae0e7f7e034f3'.

Author: mg

Index: Main.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Main.pm,v
retrieving revision 1.63
retrieving revision 1.63.2.1
diff -2 -u -d -r1.63 -r1.63.2.1
--- Main.pm	1 Mar 2012 18:04:44 -0000	1.63
+++ Main.pm	28 Jan 2013 13:46:57 -0000	1.63.2.1
@@ -1,5 +1,5 @@
 # --
 # Kernel/System/Main.pm - main core components
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -335,8 +335,10 @@
     # return if file can not open
     if ( !open $FH, $Mode, $Param{Location} ) {
-        $Self->{LogObject}->Log(
-            Priority => 'error',
-            Message  => "Can't open '$Param{Location}': $!",
-        );
+        if ( !$Param{DisableWarnings} ) {
+            $Self->{LogObject}->Log(
+                Priority => 'error',
+                Message  => "Can't open '$Param{Location}': $!",
+            );
+        }
         return;
     }
@@ -344,8 +346,10 @@
     # lock file (Shared Lock)
     if ( !flock $FH, 1 ) {
-        $Self->{LogObject}->Log(
-            Priority => 'error',
-            Message  => "Can't lock '$Param{Location}': $!",
-        );
+        if ( !$Param{DisableWarnings} ) {
+            $Self->{LogObject}->Log(
+                Priority => 'error',
+                Message  => "Can't lock '$Param{Location}': $!",
+            );
+        }
     }
 
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.