From 1e735c69faccf00c7b600d6fc797966bd82383d5 Mon Sep 17 00:00:00 2001 From: Akihito Nakano Date: Thu, 18 Jul 2019 15:04:27 +0900 Subject: [PATCH] Add `Logs` section to the Debugging page. (#3357) --- docs/debugging.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/debugging.md b/docs/debugging.md index 99c47c658ea..783a6012bec 100644 --- a/docs/debugging.md +++ b/docs/debugging.md @@ -62,3 +62,26 @@ The steps are shown here for a specific version of the generator, but apply the Listening for transport dt_socket at address: 5005 ``` * Set breakpoints in code, and then attach your remote debugger from your IDE (see above). The generator will automatically unblock once the remote debugger is attached. You can now step through the code. + +## Logs + +You can try to enable debugging log with `-Dlog.level=debug` option to the `JAVA_OPTS` environment variable to see more information: + +```bash +export JAVA_OPTS="${JAVA_OPTS} -Dlog.level=debug" +``` + +Set the option then DEBUG logs are printed out: + +```bash +openapi-generator generate -g go ... + +... +... +[main] DEBUG o.o.codegen.DefaultCodegen - debugging fromProperty for files : class Schema { + type: null + format: null + $ref: #/components/schemas/File +... +... +```