Skip to content

Commit

Permalink
Add missing spaces in multiline logs (#2627)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-cz committed Sep 10, 2020
1 parent 6d38919 commit f993ab4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/workbox-background-sync/src/Queue.ts
Expand Up @@ -323,14 +323,14 @@ class Queue {
await fetch(entry.request.clone());

if (process.env.NODE_ENV !== 'production') {
logger.log(`Request for '${getFriendlyURL(entry.request.url)}'` +
logger.log(`Request for '${getFriendlyURL(entry.request.url)}' ` +
`has been replayed in queue '${this._name}'`);
}
} catch (error) {
await this.unshiftRequest(entry);

if (process.env.NODE_ENV !== 'production') {
logger.log(`Request for '${getFriendlyURL(entry.request.url)}'` +
logger.log(`Request for '${getFriendlyURL(entry.request.url)}' ` +
`failed to replay, putting it back in queue '${this._name}'`);
}
throw new WorkboxError('queue-replay-failed', {name: this._name});
Expand Down Expand Up @@ -372,7 +372,7 @@ class Queue {
self.addEventListener('sync', (event: SyncEvent) => {
if (event.tag === `${TAG_PREFIX}:${this._name}`) {
if (process.env.NODE_ENV !== 'production') {
logger.log(`Background sync for tag '${event.tag}'` +
logger.log(`Background sync for tag '${event.tag}' ` +
`has been received`);
}

Expand Down
4 changes: 2 additions & 2 deletions packages/workbox-google-analytics/src/initialize.ts
Expand Up @@ -93,14 +93,14 @@ const createOnSyncCallback = (config: GoogleAnalyticsInitializeOptions) => {


if (process.env.NODE_ENV !== 'production') {
logger.log(`Request for '${getFriendlyURL(url.href)}'` +
logger.log(`Request for '${getFriendlyURL(url.href)}' ` +
`has been replayed`);
}
} catch (err) {
await queue.unshiftRequest(entry);

if (process.env.NODE_ENV !== 'production') {
logger.log(`Request for '${getFriendlyURL(url.href)}'` +
logger.log(`Request for '${getFriendlyURL(url.href)}' ` +
`failed to replay, putting it back in the queue.`);
}
throw err;
Expand Down
4 changes: 2 additions & 2 deletions packages/workbox-strategies/src/CacheOnly.ts
Expand Up @@ -53,8 +53,8 @@ class CacheOnly extends Strategy {
logger.groupCollapsed(
messages.strategyStart(this.constructor.name, request));
if (response) {
logger.log(`Found a cached response in the '${this.cacheName}'` +
` cache.`);
logger.log(`Found a cached response in the '${this.cacheName}' ` +
`cache.`);
messages.printFinalResponse(response);
} else {
logger.log(`No response found in the '${this.cacheName}' cache.`);
Expand Down

0 comments on commit f993ab4

Please sign in to comment.