From fc38101ff89ed95fd14c2510cae397504589fe95 Mon Sep 17 00:00:00 2001 From: jiro4989 Date: Sat, 7 Dec 2019 15:17:36 +0900 Subject: [PATCH] =?UTF-8?q?logging=E3=82=92=E4=BD=BF=E7=94=A8=E3=81=97?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shellgei_web_server/src/shellgei_web_server.nim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/shellgei_web_server/src/shellgei_web_server.nim b/shellgei_web_server/src/shellgei_web_server.nim index 77876c7..17b7523 100644 --- a/shellgei_web_server/src/shellgei_web_server.nim +++ b/shellgei_web_server/src/shellgei_web_server.nim @@ -1,4 +1,4 @@ -import asyncdispatch, os, osproc, strutils, json, random, logging, base64 +import asyncdispatch, os, osproc, strutils, json, random, base64 from strformat import `&` import jester, uuids @@ -7,6 +7,13 @@ type RespShellgeiJSON* = object code*: string +proc info(msgs: varargs[string, `$`]) = + ## **Note:** マルチスレッドだとloggingモジュールがうまく機能しないので仮で実装 + var s: string + for msg in msgs: + s.add(msg) + echo "INFO " & s + router myrouter: post "/shellgei": # TODO: