@@ -60,7 +60,7 @@ WeatherProvider.register("envcanada", {
6060 * Called when the weather provider is started
6161 */
6262 start ( ) {
63- Log . info ( `[weatherprovider] ${ this . providerName } started.` ) ;
63+ Log . info ( `[weatherprovider.envcanada ] ${ this . providerName } started.` ) ;
6464 this . setFetchedLocation ( this . config . location ) ;
6565 } ,
6666
@@ -103,13 +103,13 @@ WeatherProvider.register("envcanada", {
103103 fetchCommon ( target ) {
104104 const forecastURL = this . getUrl ( ) ; // Get the approriate URL for the MSC Datamart Index page
105105
106- Log . debug ( `[weather .envcanada] ${ target } Index url: ${ forecastURL } ` ) ;
106+ Log . debug ( `[weatherprovider .envcanada] ${ target } Index url: ${ forecastURL } ` ) ;
107107
108108 this . fetchData ( forecastURL , "xml" ) // Query the Index page URL
109109 . then ( ( indexData ) => {
110110 if ( ! indexData ) {
111111 // Did not receive usable new data.
112- Log . info ( `weather .envcanada ${ target } - did not receive usable index data` ) ;
112+ Log . info ( `[weatherprovider .envcanada] ${ target } - did not receive usable index data` ) ;
113113 this . updateAvailable ( ) ; // If there were issues, update anyways to reset timer
114114 return ;
115115 }
@@ -133,27 +133,27 @@ WeatherProvider.register("envcanada", {
133133 forecastFileURL = forecastURL + forecastFile ; // Create full URL to the city's weather data
134134 }
135135
136- Log . debug ( `[weather .envcanada] ${ target } Citypage url: ${ forecastFileURL } ` ) ;
136+ Log . debug ( `[weatherprovider .envcanada] ${ target } Citypage url: ${ forecastFileURL } ` ) ;
137137
138138 /*
139139 * If the Citypage filename has not changed since the last Weather refresh, the forecast has not changed and
140140 * and therefore we can skip reading the Citypage URL.
141141 */
142142
143143 if ( target === "Current" && this . lastCityPageCurrent === forecastFileURL ) {
144- Log . debug ( `[weather .envcanada] ${ target } - Newest Citypage has already been seen - skipping!` ) ;
144+ Log . debug ( `[weatherprovider .envcanada] ${ target } - Newest Citypage has already been seen - skipping!` ) ;
145145 this . updateAvailable ( ) ; // Update anyways to reset refresh timer
146146 return ;
147147 }
148148
149149 if ( target === "Forecast" && this . lastCityPageForecast === forecastFileURL ) {
150- Log . debug ( `[weather .envcanada] ${ target } - Newest Citypage has already been seen - skipping!` ) ;
150+ Log . debug ( `[weatherprovider .envcanada] ${ target } - Newest Citypage has already been seen - skipping!` ) ;
151151 this . updateAvailable ( ) ; // Update anyways to reset refresh timer
152152 return ;
153153 }
154154
155155 if ( target === "Hourly" && this . lastCityPageHourly === forecastFileURL ) {
156- Log . debug ( `[weather .envcanada] ${ target } - Newest Citypage has already been seen - skipping!` ) ;
156+ Log . debug ( `[weatherprovider .envcanada] ${ target } - Newest Citypage has already been seen - skipping!` ) ;
157157 this . updateAvailable ( ) ; // Update anyways to reset refresh timer
158158 return ;
159159 }
@@ -162,15 +162,15 @@ WeatherProvider.register("envcanada", {
162162 . then ( ( cityData ) => {
163163 if ( ! cityData ) {
164164 // Did not receive usable new data.
165- Log . info ( `weather .envcanada ${ target } - did not receive usable citypage data` ) ;
165+ Log . info ( `[weatherprovider .envcanada] ${ target } - did not receive usable citypage data` ) ;
166166 return ;
167167 }
168168
169169 /*
170170 * With the city's weather data read, parse the resulting XML document for the appropriate weather data
171171 * elements to create a weather object. Next, set Weather modules details from that object.
172172 */
173- Log . debug ( `[weather .envcanada] ${ target } - Citypage has been read and will be processed for updates` ) ;
173+ Log . debug ( `[weatherprovider .envcanada] ${ target } - Citypage has been read and will be processed for updates` ) ;
174174
175175 if ( target === "Current" ) {
176176 const currentWeather = this . generateWeatherObjectFromCurrentWeather ( cityData ) ;
@@ -191,12 +191,12 @@ WeatherProvider.register("envcanada", {
191191 }
192192 } )
193193 . catch ( function ( cityRequest ) {
194- Log . info ( `weather .envcanada ${ target } - could not load citypage data from: ${ forecastFileURL } ` ) ;
194+ Log . info ( `[weatherprovider .envcanada] ${ target } - could not load citypage data from: ${ forecastFileURL } ` ) ;
195195 } )
196196 . finally ( ( ) => this . updateAvailable ( ) ) ; // Update no matter what to reset weather refresh timer
197197 } )
198198 . catch ( function ( indexRequest ) {
199- Log . error ( `weather .envcanada ${ target } - could not load index data ... ` , indexRequest ) ;
199+ Log . error ( `[weatherprovider .envcanada] ${ target } - could not load index data ... ` , indexRequest ) ;
200200 this . updateAvailable ( ) ; // If there were issues, update anyways to reset timer
201201 } ) ;
202202 } ,
0 commit comments