diff --git a/Trell/IPC/Server/TrellServer.cs b/Trell/IPC/Server/TrellServer.cs index 02a7c3e..a94601d 100644 --- a/Trell/IPC/Server/TrellServer.cs +++ b/Trell/IPC/Server/TrellServer.cs @@ -115,38 +115,4 @@ public override Task NotifyWorkerReady(WorkerReady request, ServerCallCon Serilog.Log.Information("Worker {Id} is ready.", request.WorkerId); return Task.FromResult(MessageConstants.Empty); } - - /// - /// Called from the worker (on a user's behalf) to log. - /// - /// - /// - /// - /// - public override Task Log(LogRequest request, ServerCallContext context) { - throw new NotImplementedException(); - - //if (extensionContainer.Logger is not ITrellLogger logger) { - // return Task.FromResult(MessageConstants.Empty); - //} - - //var trellLogLevel = request.LogLevel switch { - // LogLevel.Error => TrellLogLevel.Error, - // LogLevel.Warning => TrellLogLevel.Warn, - // _ => TrellLogLevel.Info, - //}; - - //if (!executionContextById.TryGetValue(request.ExecutionId, out var ctx)) { - // var metadata = new Metadata { - // { "ExecutionId", request.ExecutionId } - // }; - // throw new RpcException( - // new Status(StatusCode.InvalidArgument, "ExecutionId does not exist"), - // metadata); - //} - - //logger.Log(ctx, trellLogLevel, request.Message); - - //return Task.FromResult(MessageConstants.Empty); - } } diff --git a/Trell/Protos/TrellServer.proto b/Trell/Protos/TrellServer.proto index a6dfea3..3ac450e 100644 --- a/Trell/Protos/TrellServer.proto +++ b/Trell/Protos/TrellServer.proto @@ -31,9 +31,6 @@ service TrellServer { // -------------------- START INTERNAL API ----------------------------- - // Called from the worker (on a user's behalf) to log. - rpc Log(LogRequest) returns (google.protobuf.Empty); - // Called from the worker to let server know it is ready to work. rpc NotifyWorkerReady(WorkerReady) returns (google.protobuf.Empty);