File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -126,30 +126,30 @@ func (so *Application) SessionRefresh() {
126
126
if err != nil {
127
127
Emergency (err .Error ())
128
128
}
129
- Ok ("SQLite3 Database loaded: %s" , so .databaseFile )
129
+ Debug ("SQLite3 Database loaded: %s" , so .databaseFile )
130
130
131
131
// Check does the StackQuestion table exist
132
132
err = so .SQLite3 .VerifyTable ("StackExchangeQuestion" )
133
133
if err != nil {
134
134
Emergency ("Table StackExchangeQuestion: %q" , err )
135
135
}
136
- Ok ("Table: StackExchangeQuestion exists." )
136
+ Debug ("Table: StackExchangeQuestion exists." )
137
137
138
138
// Check does the SlackQuestion table exist
139
139
err = so .SQLite3 .VerifyTable ("SlackQuestion" )
140
140
if err != nil {
141
141
Emergency ("Table SlackQuestion: %q" , err )
142
142
}
143
- Ok ("Table: SlackQuestion exists." )
143
+ Debug ("Table: SlackQuestion exists." )
144
144
145
145
// Check does the StackExchangeUser table exist
146
146
err = so .SQLite3 .VerifyTable ("StackExchangeUser" )
147
147
if err != nil {
148
148
Emergency ("Table StackExchangeUser: %q" , err )
149
149
}
150
- Ok ("Table: StackExchangeUser exists." )
150
+ Debug ("Table: StackExchangeUser exists." )
151
151
} else {
152
- Ok ("SQLite3 Database is already loaded." )
152
+ Debug ("SQLite3 Database is already loaded." )
153
153
}
154
154
155
155
// Load Stack Exchange Client
Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ func (yc *yamlContents) ConfigureSlackOverflow() {
101
101
std .Hr ()
102
102
std .Body ("Configuring Slack Overflow" )
103
103
104
+ // Force to reload the configuration file if exists
105
+ yc .IsConfigured ()
106
+
104
107
reader := bufio .NewReader (os .Stdin )
105
108
// Log level
106
109
@@ -134,6 +137,9 @@ func (yc *yamlContents) ConfigureStackExchange() {
134
137
std .Hr ()
135
138
std .Body ("Configuring Stack Exchange API Client" )
136
139
140
+ // Force to reload the configuration file if exists
141
+ yc .IsConfigured ()
142
+
137
143
reader := bufio .NewReader (os .Stdin )
138
144
139
145
if yc .StackExchange .SearchAdvanced == nil {
@@ -183,6 +189,9 @@ func (yc *yamlContents) ConfigureSlack() {
183
189
std .Hr ()
184
190
std .Body ("Configuring Slack API Client" )
185
191
192
+ // Force to reload the configuration file if exists
193
+ yc .IsConfigured ()
194
+
186
195
reader := bufio .NewReader (os .Stdin )
187
196
188
197
// Set Slack Defaults
You can’t perform that action at this time.
0 commit comments