ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/schmorplog.ext
(Generate patch)

Comparing deliantra/server/ext/schmorplog.ext (file contents):
Revision 1.20 by root, Sat May 3 13:29:14 2008 UTC vs.
Revision 1.21 by root, Mon Sep 1 09:12:42 2008 UTC

149 } 149 }
150 150
151 $cmd = lc $cmd; 151 $cmd = lc $cmd;
152}; 152};
153 153
154# log "crash" messages, i.e. client exit reasons
155cf::register_exticmd clientlog => sub {
156 my ($ns, $msg) = @_;
157
158 my $name = $ns->pl && $ns->pl->ob ? $ns->pl->ob->name : "<unknown>";
159
160 $msg =~ y/\x0a\x20-\x7f//cd;
161 $msg =~ s/\s+$//;
162
163 warn sprintf "clientlog [%s/%s]: %s\n", $ns->host, $name, $msg;
164
165 ()
166};
167

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines