Kaydet (Commit) e4425041 authored tarafından Gürer Özen's avatar Gürer Özen

öntanımlı çıktılar /var/log/comar.log a gitsin

üst 45925afa
......@@ -19,9 +19,9 @@
/* global option variables with defaults */
char *cfg_model_file = "/etc/comar/model.xml";
char *cfg_data_dir = "/var/db/comar";
int cfg_log_console = 1; // FIXME: log file should be default for
int cfg_log_file = 0; // production release
char *cfg_log_file_name = "log.txt";
int cfg_log_console = 0;
int cfg_log_file = 1;
char *cfg_log_file_name = "/var/log/comar.log";
int cfg_log_flags = 0;
static struct logflag_struct {
......
......@@ -190,7 +190,7 @@ write_rpc(struct connection *c, unsigned int cmd, int id, const char *buffer, si
size_t sz;
ipc_get_arg(&s, &sz);
printf("writeRPC(%d,%d,%d,%s,%d,%s)\n", cmd, id, sz, s, size, buffer);
//printf("writeRPC(%d,%d,%d,%s,%d,%s)\n", cmd, id, sz, s, size, buffer);
head[0] = cmd & 0xFF;
head[1] = ((size + 1 + sz) >> 16) & 0xFF;
......@@ -203,7 +203,7 @@ printf("writeRPC(%d,%d,%d,%s,%d,%s)\n", cmd, id, sz, s, size, buffer);
return 0;
}
printf("writeRPC(%d,%d,%d,%s)\n", cmd, id, size, buffer);
//printf("writeRPC(%d,%d,%d,%s)\n", cmd, id, size, buffer);
head[0] = cmd & 0xFF;
head[1] = (size >> 16) & 0xFF;
head[2] = (size >> 8) & 0xFF;
......@@ -225,7 +225,7 @@ parse_rpc(struct connection *c)
cmd = get_cmd(c->buffer);
id = get_id(c->buffer + 4);
printf("RPC cmd %d, id %d, size %d\n", cmd, id, c->data_size);
//printf("RPC cmd %d, id %d, size %d\n", cmd, id, c->data_size);
args.buffer = c->buffer + 8;
args.pos = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment