985 **
static std::vector<std::string> exceptions =
987 **
"session was killed",
988 **
"all threads are busy" 991 **
static std::vector<std::string> pop_exceptions =
993 **
"basic_string::at: __n",
994 **
"bad lexical cast" 1002 ** Wt::WApplication::notify(event);
1008 **
catch( std::exception & exception )
1014 **
for(
auto except : exceptions )
1015 **
if( std::string(exception.what()).find(except) != std::string::npos )
1017 ** COUT_(
"redirecting to: " + originalUrl( internalPath() ) );
1018 ** redirect( originalUrl( internalPath() ) );
1029 ** Wt::WString(
"EXCEPTION: '{1}'")
1030 ** .arg( exception.what() )
1043 ** txtLog( message,
true );
1050 **
for(
auto except : pop_exceptions )
1051 **
if( std::string(exception.what()).find(except) != std::string::npos )
1053 ** Wt::WMessageBox::show
1057 **
" Oh oh, something went wrong,<br />" 1058 **
" please check what you are editing " 1067 ** COUT_(
"\n\n\n\n\n\n<<<<< EXCEPTION >>>>>>>" );
1068 ** COUT_( exception.what() );
1082 ** {
"adminemail@somesuchthing.com"}
1092 ** COUT_(
"redirecting to: " + originalUrl( internalPath() ) );
1093 ** redirect( originalUrl( internalPath() ) );
2163 216 std::this_thread::sleep_for( std::chrono::seconds(1) );
2169 222
if( app-> hasQuit() )
2178 231 Wt::WApplication::UpdateLock lock( app );
2200 253 app-> triggerUpdate();
2207 2024
void AdminWidget::hold_me()
2209 2026
for(
int i = 0; i < 10; i++ )
2211 2028 std::cout << __FILE__ <<
":" << __LINE__ <<
" holding... " << i << std::endl;
2213 2030 std::this_thread::sleep_for( std::chrono::seconds(1) );
2216 2033 std::cout << __FILE__ <<
":" << __LINE__ <<
" held." << std::endl;
2223 [2020-Jul-08 08:45:25.400] AppBase.cpp:298 logs/Admin(1)/2020-07-08.log Admin(1) buildSite logon ip:71.170.246.90 w:1920 h:1080
2224 [2020-Jul-08 13:45:26.471] 26022 [/staff2 tg4JC7kUmbwSwunn] [warning] "WApplication: WApplication::addMetaHeader() with no effect"
2226 [2020-Jul-08 13:45:27.406] 26022 [/staff2 tg4JC7kUmbwSwunn] [error] "
Wt: decodeSignal(): signal 'orp26iu.render' not exposed"
2231 src/AppStaff.cpp:2028 holding... 0
2232 src/AppStaff.cpp:2028 holding... 1
2233 src/AppStaff.cpp:2028 holding... 2
2234 src/AppStaff.cpp:2028 holding... 3
2235 src/AppStaff.cpp:2028 holding... 4
2236 src/AppStaff.cpp:2028 holding... 5
2237 src/AppStaff.cpp:2028 holding... 6
2238 src/AppStaff.cpp:2028 holding... 7
2239 src/AppStaff.cpp:2028 holding... 8
2240 src/AppStaff.cpp:2028 holding... 9
2241 src/AppStaff.cpp:2033 held.