File tree Expand file tree Collapse file tree
plugins/logging/static/clientjs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ REST API
1515 files.rst
1616 job.rst
1717 languages.rst
18- logs.rst
1918 printer.rst
2019 printerprofiles.rst
2120 settings.rst
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4343
4444 //~~ wrapper for backwards compatibility
4545
46- var DeprecatedOctoPrintLogsClient = function ( base ) {
47- this . base = base ;
48- this . wrapped = this . base . plugins . logging ;
49- } ;
50-
51- DeprecatedOctoPrintLogsClient . prototype . list = function ( opts ) {
52- log . warn (
53- "OctoPrintClient.logs.list has been deprecated as of OctoPrint 1.3.7, use OctoPrintClient.plugins.logging.listLogs instead"
54- ) ;
55- return this . wrapped . listLogs ( opts ) ;
56- } ;
57-
58- DeprecatedOctoPrintLogsClient . prototype . delete = function ( file , opts ) {
59- log . warn (
60- "OctoPrintClient.logs.delete has been deprecated as of OctoPrint 1.3.7, use OctoPrintClient.plugins.logging.deleteLog instead"
61- ) ;
62- return this . wrapped . deleteLog ( file , opts ) ;
63- } ;
64-
65- DeprecatedOctoPrintLogsClient . prototype . download = function ( file , opts ) {
66- log . warn (
67- "OctoPrintClient.logs.download has been deprecated as of OctoPrint 1.3.7, use OctoPrintClient.plugins.logging.downloadLog instead"
68- ) ;
69- return this . wrapped . downloadLog ( file , opts ) ;
70- } ;
71-
7246 // register plugin component
7347 OctoPrintClient . registerPluginComponent ( "logging" , OctoPrintLoggingClient ) ;
7448
75- // also register deprecated client under old endpoint
76- OctoPrintClient . registerComponent ( "logs" , DeprecatedOctoPrintLogsClient ) ;
77-
7849 return OctoPrintLoggingClient ;
7950} ) ;
Original file line number Diff line number Diff line change @@ -2176,17 +2176,6 @@ def joined_dict(*dicts):
21762176 "content_type" : "image/gif" ,
21772177 },
21782178 ),
2179- # deprecated endpoints
2180- (
2181- r"/api/logs" ,
2182- util .tornado .DeprecatedEndpointHandler ,
2183- {"url" : "/plugin/logging/logs" },
2184- ),
2185- (
2186- r"/api/logs/(.*)" ,
2187- util .tornado .DeprecatedEndpointHandler ,
2188- {"url" : "/plugin/logging/logs/{0}" },
2189- ),
21902179 ]
21912180
21922181 # additional routes from plugins
You can’t perform that action at this time.
0 commit comments