Index: /Users/mh/Documents/workspace/trunk/server/slimserver.pl =================================================================== --- /Users/mh/Documents/workspace/trunk/server/slimserver.pl (revision 14066) +++ /Users/mh/Documents/workspace/trunk/server/slimserver.pl (working copy) @@ -527,7 +527,7 @@ [--priority ] [--prefsdir [--pidfile ]] [--perfmon] [--perfwarn= | --perfwarn ] - [--checkstrings] [--debug] + [--checkstrings] [--log] --help => Show this usage information. --audiodir => The path to a directory of your MP3 files. @@ -568,7 +568,7 @@ --perfmon => Enable internal server performance monitoring --perfwarn => Generate log messages if internal tasks take longer than specified threshold --checkstrings => Enable reloading of changed string files for plugin development - --debug => Enable debugging for the specified comma separated categories + --log => Enable logging for the specified comma separated categories Commands may be sent to the server through standard in and will be echoed via standard out. See complete documentation for details on the command syntax. @@ -576,6 +576,8 @@ } sub initOptions { + my $log; + $LogTimestamp = 1; if (!GetOptions( @@ -592,6 +594,7 @@ 'logdir=s' => \$logdir, 'logconfig=s' => \$logconf, 'debug=s' => \$debug, + 'log=s' => \$log, 'LogTimestamp!' => \$LogTimestamp, 'audiodir=s' => \$audiodir, 'playlistdir=s' => \$playlistdir, @@ -615,6 +618,9 @@ showUsage(); exit(1); } + + $debug ||= $log; + if ($help) { showUsage(); exit(1);