Roxen.git/
server/
base_server/
module.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-08-09
2001-08-09 16:59:56 by Martin Stjernholm <mast@lysator.liu.se>
b7eaa2927afdfab8ba958ec71678c2965ccad820 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed _sprintf to work before _module_identifier is set.
Rev: server/base_server/module.pike:1.122
1:
// This file is part of Roxen WebServer. // Copyright © 1996 - 2001, Roxen IS.
-
// $Id: module.pike,v 1.
121
2001/08/
01
17
:
57
:
05
per
Exp $
+
// $Id: module.pike,v 1.
122
2001/08/
09
16
:
59
:
56
mast
Exp $
#include <module_constants.h> #include <module.h>
38:
* module/configuration. And the reason for that is that if the * messages are logged from subclasses in the module, the DWIM in * roxenlib.pike cannot see that they are logged from a module. This
-
* solution is not really all that
beatiful
, but it works. :-)
+
* solution is not really all that
beautiful
, but it works. :-)
*/ void report_fatal( mixed ... args ) { predef::report_fatal( @args ); } void report_error( mixed ... args ) { predef::report_error( @args ); }
67:
string _sprintf() {
-
return sprintf ("RoxenModule(%s)", _module_identifier);
+
return sprintf ("RoxenModule(%s)", _module_identifier
|| "?"
);
} array register_module()