프로젝트

일반

사용자정보

개정판 c5519c44

IDc5519c446633f637b8f6a207f8ae0e0421def066
상위 83df6f8f
하위 7b095cc3

김태성이(가) 약 5년 전에 추가함

- convert log 수정
- markus text font 변경시 저장 여부 메시지 나오도록 수정
-

Change-Id: I85fa01d063204c85eb5b70bf34a3773f5cb5fd8f

차이점 보기:

ConvertService/ServiceBase/Markus.Service.Convert/ConvertService.cs
193 193
                        string msg = $"ConvertService Error {saveitem.SavePath} Delete Error";
194 194
                        logger.Error(msg);
195 195
                        result.StatusCode = StatusCodeType.FileError;
196
                        result.Message = msg;
196
                        result.Message =  LogHelper.GetStack() + " " +LogHelper.GetStack() + " " + msg;
197 197

  
198 198
                        return result;
199 199
                    }
......
231 231
                                       || Directory.EnumerateFiles(saveitem.SavePath, "*.jpg").Count() != saveitem.TotalPages))
232 232
                    {
233 233
                        result.StatusCode = StatusCodeType.PageError;
234
                        result.Message = "Page Count Error";
234
                        result.Message =  LogHelper.GetStack() + " " +"Page Count Error";
235 235
                        ReConvert = 1;
236 236

  
237 237
                        result = ConvertBigFileProcess(saveitem);
......
264 264
                        else
265 265
                        {
266 266
                            result.StatusCode = StatusCodeType.FileError;
267
                            result.Message =  $"Doc Set Error. {result.Message}";
267
                            result.Message =  LogHelper.GetStack() + " " + $"Doc Set Error. {result.Message}";
268 268
                        }
269 269
                    }
270 270
                    else
271 271
                    {
272 272
                        result.StatusCode = StatusCodeType.FileError;
273
                        result.Message = $"Page List Get Error. {result.Message} ";
273
                        result.Message =  LogHelper.GetStack() + " " +$"Page List Get Error. {result.Message} ";
274 274
                    }
275 275
                }
276 276
                else
......
281 281
            }
282 282
            catch (Exception ex)
283 283
            {
284
                result.Message = "ConvertService Convert Error" + ex.Message;
284
                result.Message =  LogHelper.GetStack() + " " +"ConvertService Convert Error" + ex.Message;
285 285
                result.StatusCode = StatusCodeType.Error;
286 286

  
287 287
                logger.Error(ex);
......
366 366
                            await webClient.DownloadFileTaskAsync(pdfFileUri, downloadFilePath);
367 367
                            webClient.Dispose();
368 368
                        }
369

  
370
                        await Task.Delay(300);
369 371
                    }
370 372
                    catch (Exception ex)
371 373
                    {
......
467 469
                                gMarkusPDF = new MarkusPDF();
468 470
                                gMarkusPDF.pdfLoad(saveitem.PdfFilePath, saveitem.MinimumFontSize, saveitem.UseResolution);
469 471
                            }
472

  
470 473
                            System.Threading.Thread.SpinWait(2);
471 474
                        }
472 475
                    }
473 476
                    catch (Exception ex)
474 477
                    {
475 478
                        result.StatusCode = StatusCodeType.PageError;
476
                        result.Message = "Save Error - " + ex.Message;
479
                        result.Message =  LogHelper.GetStack() + " " +"Save Error - " + ex.Message;
477 480

  
478 481
                        if (gMarkusPDF != null)
479 482
                        {
......
497 500
            catch (Exception ex)
498 501
            {
499 502
                result.StatusCode = StatusCodeType.Error;
500
                result.Message = ex.Message;
503
                result.Message =  LogHelper.GetStack() + " " +ex.Message;
501 504
            }
502 505

  
503 506
            return result;

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)