egg 3.17.2 → 3.17.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -617,7 +617,7 @@ declare module 'egg' {
617
617
  */
618
618
  addSingleton(name: string, create: any): void;
619
619
 
620
- runSchedule(schedulePath: string): Promise<any>;
620
+ runSchedule(schedulePath: string, ...args: any[]): Promise<any>;
621
621
 
622
622
  /**
623
623
  * http request helper base on httpclient, it will auto save httpclient log.
@@ -1,9 +1,6 @@
1
- 'use strict';
2
-
3
1
  const CALL = Symbol('BaseContextLogger#call');
4
2
 
5
3
  class BaseContextLogger {
6
-
7
4
  /**
8
5
  * @class
9
6
  * @param {Context} ctx - context instance
@@ -24,7 +21,7 @@ class BaseContextLogger {
24
21
  if (this.pathName && typeof args[0] === 'string') {
25
22
  args[0] = `[${this.pathName}] ${args[0]}`;
26
23
  }
27
- this.ctx.logger[method](...args);
24
+ this.ctx.app.logger[method](...args);
28
25
  }
29
26
 
30
27
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egg",
3
- "version": "3.17.2",
3
+ "version": "3.17.4",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },