ClientLogHandler.java 586 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
package emu.grasscutter.server.dispatch;

import express.http.HttpContextHandler;
import express.http.Request;
import express.http.Response;

import java.io.IOException;

/**
krrr's avatar
krrr committed
10
 * Used for processing crash dumps and logs generated by the game.
11
12
13
14
15
16
17
18
19
 * Logs are in JSON, and are sent to the server for logging.
 */
public final class ClientLogHandler implements HttpContextHandler {
    @Override
    public void handle(Request request, Response response) throws IOException {
        // TODO: Figure out how to dump request body and log to file.
        response.send("{\"code\":0}");
    }
}