-
Notifications
You must be signed in to change notification settings - Fork 101
feat: Error reporting at the end of the simulatiuon #3929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/dudes/perforations-table-detail
Are you sure you want to change the base?
Changes from 250 commits
66ab5cb
e6135b1
589fcfe
6fc4b30
77f9fcb
5747e7f
10eb969
2c5c5f5
d1642e6
b3cbb99
5781a78
db75e45
e07ab72
754ed03
83d0c0f
d5d8615
1913059
6692dd2
29f6fbe
d17972f
759e9bb
1b755b5
3786db4
efa89d8
7915205
14eefee
500bbfd
fa8fa54
a29510b
c501a0f
a07810f
cbb5322
c743e15
dc13b33
355e765
276606c
3253a0b
cf0afc5
efcc52d
79b9791
d951a16
29dec26
6be688c
62fa7ec
5f9c74c
95f631e
df926d5
07b649a
2fee6bf
93594af
e430ae8
d5408c9
17a394a
061f502
450c3b0
d0ff49d
628e49c
f09d45f
ec1feab
419ba18
9d5db85
2c9d6ce
8708f2d
3842caa
ae0b73c
96bab37
f47e62e
9289b82
694e64e
b083853
b13149d
e1b45f4
976aab5
42c53b9
16c9e77
30baf23
0aeddcf
ae60c25
5a52a75
c48c52d
bbb72ff
855cf80
daec006
ab9895b
60a1f3a
4e74b00
08973a3
cee0059
2a639a7
a2b31d1
d4db78b
7df78ff
ac46643
745c883
ce6a7dd
abc6d2a
ec7ddc1
dd60826
d511e16
417f3b3
4a5b4fe
35d8707
aa22991
dfb0c81
38023c2
62fcf31
1495a68
a4e69cd
16057c1
3ed52be
e40167f
b529d7a
ec4703c
fbed3ed
e8682c7
cf1c00f
aa9d539
6adbae1
b351784
588084d
535e87f
ff2f3fa
359f256
a942101
b528427
5eb71ce
0a5af00
048b141
a8e9633
05e8a6a
8e112aa
9a1f1b1
ea56eb8
da560e1
456e767
44a54d8
6f444d6
7015589
2a377ea
fc43a98
e15f3d9
55e2f96
686a73f
9f63f96
0b0ef4d
9296d6d
c886b9e
99849aa
dd11209
f3c4bc7
1cda08b
d8ef456
d6f00ac
3a1983b
59ad659
c9d8e44
57fb5bd
18bf539
e6843d8
4298b30
fec93ac
5932b5c
feaf4c0
aa925c7
012c5a8
5abd889
ea9cd5f
09ceacc
e002df7
5faba4c
f0efb2a
8747eb4
e157689
84fab9b
3133435
28eedf4
054bef0
c72cd76
3bd0dfc
ff38be6
e55a445
c32d8eb
a923dfd
10df7ad
45753f0
1ee6c7b
0cfb65e
7c4a220
00865f4
c0343fa
fa00c7d
aed8db1
3020d1b
d563192
edd7100
73ccf6a
c7332ee
f851adc
1b724b1
564b8dc
d112ef6
872c04e
21ddd3b
fe76e62
98762f0
440beca
0481762
aad10c4
f9d2501
edcf4f8
f966ebb
9f31612
d458668
171b278
c6177ab
115a23e
7c89805
72c0bc7
1027ff2
183e0fe
de4c9e7
6a010ae
db2ac84
556b5e5
ccdcad5
ca1c677
16a662b
bf74177
94f4209
2940af6
cdc533c
89110c9
35a7d76
cf1eb6d
7b85e8c
b6a3658
79f9e90
93a1df7
b31a43a
4939fb7
5eea04f
91f1b07
d1f3d89
1663206
3dab742
a122198
afabc18
68303b7
3cf1b7a
fc1d378
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| /* | ||
| * ------------------------------------------------------------------------------------------------------------ | ||
| * SPDX-License-Identifier: LGPL-2.1-only | ||
| * | ||
| * Copyright (c) 2016-2024 Lawrence Livermore National Security LLC | ||
| * Copyright (c) 2018-2024 TotalEnergies | ||
| * Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University | ||
| * Copyright (c) 2023-2024 Chevron | ||
| * Copyright (c) 2019- GEOS/GEOSX Contributors | ||
| * All rights reserved | ||
| * | ||
| * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details. | ||
| * ------------------------------------------------------------------------------------------------------------ | ||
| */ | ||
|
|
||
| /** | ||
| * @file EnumStrings.cpp | ||
| */ | ||
|
|
||
| #include "common/format/EnumStrings.hpp" | ||
| #include "common/logger/Logger.hpp" | ||
|
|
||
| namespace geos | ||
| { | ||
|
|
||
| void internal::EnumErrorMessageToString( size_t index, | ||
| string const & typeName, | ||
| std::size_t size ) | ||
| { | ||
| GEOS_THROW( "Invalid value " << index << " of type " << typeName<< ". Valid range is 0.." << size - 1, | ||
| InputError ); | ||
| } | ||
|
|
||
| void internal::EnumErrorMessageFromString( string const & s, | ||
| string const & typeName, | ||
| string const & concat ) | ||
| { | ||
| GEOS_THROW( "Invalid value '" << s << "' of type " << typeName << ". Valid options are: " << concat, | ||
| InputError ); | ||
| } | ||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,18 +18,22 @@ | |
|
|
||
| #include "LogPart.hpp" | ||
| #include "common/format/StringUtilities.hpp" | ||
| #include "common/logger/ErrorHandling.hpp" | ||
| #include <algorithm> | ||
|
|
||
| using namespace geos::stringutilities; | ||
| namespace geos | ||
| { | ||
|
|
||
| LogPart::LogPart( string_view logPartTitle, bool enableOutput ) | ||
| LogPart::LogPart( string_view logpartName, bool enableOutput ) | ||
| { | ||
| m_formattedStartDescription.m_title = logPartTitle; | ||
| m_formattedEndDescription.m_title = GEOS_FMT( "{}{}", m_prefixEndTitle, logPartTitle ); | ||
| m_formattedStartDescription.m_title = logpartName; | ||
| m_formattedEndDescription.m_title = GEOS_FMT( "{}{}", m_prefixEndTitle, logpartName ); | ||
|
|
||
| m_enableOutput = enableOutput; | ||
|
|
||
| ErrorLogger::global().setCurrentLogPart( std::string(logpartName) ); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Storing this "current log part" information in the logger instance is the thing to do, but I don't think that is at the right moment.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The 2nd option is better, it's up to the logger de decide.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok! I keep the comment open, keep it as reference in the ticket and future PR description. |
||
|
|
||
| } | ||
|
|
||
| void LogPart::addDescription( string_view description ) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.