[X2go-Commits] cups-x2go.git - master (branch) updated: 3.0.0.2-16-ge6bae2c

X2go dev team git-admin at x2go.org
Tue Aug 30 13:48:21 CEST 2011


The branch, master has been updated
       via  e6bae2cd4b9cbed83cee9f8d495985d713d676fc (commit)
      from  5b51e6ffce26af411dc17311ff5fa49b54355fe6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e6bae2cd4b9cbed83cee9f8d495985d713d676fc
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Aug 30 13:49:40 2011 +0200

    syslog fixes

-----------------------------------------------------------------------

Summary of changes:
 cups-x2go |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

The diff of changes is:
diff --git a/cups-x2go b/cups-x2go
index d1e6f73..ddba23d 100755
--- a/cups-x2go
+++ b/cups-x2go
@@ -1,5 +1,5 @@
-#!/usr/bin/perl
-# x2go CUPS backend 
+!/usr/bin/perl
+# X2go CUPS backend 
 # Copyright 2009-2011 Obviously Nice
 #
 #  This program is free software; you can redistribute it and/or modify it
@@ -24,7 +24,7 @@ use File::Copy;
 use strict;
 
 setlogsock('unix');
-openlog($0,'','user');
+openlog($0,'cons,pid','user');
 
 my $x2goserver = "local";
 my $printdsa = "/root/.x2go/ssh/.x2goprint/id_dsa";
@@ -113,7 +113,7 @@ sub printfile
        system( "su x2goprint -c \"which x2gobasepath &>/dev/null && test -f \$(x2gobasepath)/lib/x2go/x2goprint.pl && x2goprint $userName $sess $sess$bname $sess$bname.title || sudo x2goprint $userName $sess $sess$bname $sess$bname.title\"" );
 
        # log that we processed a print job
-       syslog('info', "su x2goprint -c \"which x2gobasepath &>/dev/null && test -f \$(x2gobasepath)/lib/x2go/x2goprint.pl && x2goprint $userName $sess $bname $bname.title || sudo x2goprint $userName $sess $bname $bname.title\"");
+       syslog('debug', "su x2goprint -c \"which x2gobasepath &>/dev/null && test -f \$(x2gobasepath)/lib/x2go/x2goprint.pl && x2goprint $userName $sess $bname $bname.title || sudo x2goprint $userName $sess $bname $bname.title\"");
     }
     else
     {
@@ -144,7 +144,7 @@ my $printOptions;
 my $printFile;
 
 ($jobID, $userName, $jobTitle, $copies, $printOptions, $printFile) =  @ARGV;
-syslog('notice', "Print job received from cups-> $jobID $userName $jobTitle $copies $printOptions $printFile");
+syslog('info', "Print job received from cups -> $jobID $userName $jobTitle $copies $printOptions $printFile");
 
 my $tempFile;
 if (!$printFile)
@@ -182,7 +182,7 @@ for(my $i=0; $i<scalar(@sessions);$i++ )
      if(@sinfo[4] eq "R")
      {
          printfile( $printFile, $titleFile, @sinfo[3], @sinfo[1]);
-         syslog('info', "Call to printfile function with: $printFile $titleFile @sinfo[3] @sinfo[1]\n");
+         syslog('debug', "Call to printfile function with: $printFile $titleFile @sinfo[3] @sinfo[1]\n");
      }
 }
 


hooks/post-receive
-- 
cups-x2go.git (CUPS Backend for X2go Printing)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "cups-x2go.git" (CUPS Backend for X2go Printing).




More information about the x2go-commits mailing list